Csound Csound-dev Csound-tekno Search About

[Csnd] pan2 left-right inverted?

Date2008-01-05 13:00
FromJean-Pierre Lemoine
Subject[Csnd] pan2 left-right inverted?
Hello All,

The 5.07 documentation says
/pan2/ takes an input signal /asig/ and distributes it across two 
outputs (essentially stereo speakers) according to the control /xp/ 
which can be k- or a-rate. A zero value for /xp/ indicates hard left, 
and a 1 is hard right.

The following code sends the signal on the left not the right. ??
instr     1
  ain    oscili  10000,440, 10  ; audio signal..
  a1,a2  pan2    ain, 1, 1    ; sent across image
         outs   a1, a2
endin

Other oddity: the equal power (harmonic) panning mode put the signal in 
the middle of the stereo image when xp equals 1.

Jean-Pierre