Previous Up Next

26.2.5  Averaging channel data

The stereo2mono command converts a multichannel audio clip to a single channel audio clip.

Example

t:=soundsec(3):; L,R:=sin(2*pi*440*t),sin(2*pi*445*t):; s:=stereo2mono(createwav([L,R])):; playsnd(s)

Output: The sound of the single channel of the combination of L and R is played.


Previous Up Next