locsend
Distributes the audio signals of a previous locsig opcode.
The number of output signals must match the number in the previous locsig. The output signals from locsend are derived from the values given for distance and reverb in the locsig and are ready to be sent to local or global reverb units (see example below). The reverb amount and the balance between the 2 or 4 channels are calculated in the same way as described in the Dodge book (an essential text!).
Syntax
Examples
In the above example, the signal, asig, is sent around a complete circle once during the duration of a note while at the same time it becomes more and more “distant” from the listeners' location. locsig sends the appropriate amount of the signal internally to locsend. The outputs of the locsend are added to global accumulators in a common Csound style and the global signals are used as inputs to the reverb units in a separate instrument. For an example, see locsig.
locsig is useful for quad and stereo panning as well as fixed placed of sounds anywhere between two loudspeakers. Below is an example of the fixed placement of sounds in a stereo field. It uses the file locsend_stereo.csd.
A few notes:
;place the sound in the left speaker and near:
i1 0 1 0 1
;place the sound in the right speaker and far:
i1 1 1 90 25
;place the sound equally between left and right and in the middle ground distance:
i1 2 1 45 12
e
The next example shows a simple intuitive use of the distance value to simulate Doppler shift. The same value is used to scale the frequency as is used as the distance input to locsig.
See also
Panning and Spatialization: Amplitude spatialization
Credits
Author: Richard Karpen
Seattle, WA USA
1998
New in Csound version 3.48