Narrow the panorama of a stereo Sample object or of a stereo wav file.
a Sample object, or a string giving the name of a wav file.
a number between -50 and 50 giving the width of the panorama.
abs(pan)<50, mixtures of the two channels of
s are used for the left and the right channel of the returned Sample object, so that they appear closer to the center. For
pan=0, both sounds are completely in the center.
pan<0, the left and the right channel are interchanged afterwards.
a Sample object with the transformed panorama.
1 2 3 4 5 6 7 8 9 10
## Not run: s <- stereo(Sine(440,1),Sine(330,1)) play(s) play(panorama(s,30)) # now right and left tones are closer to the center play(panorama(s,10)) # now even closer play(panorama(s,0)) # now both at the center, the same as setChannels(s,1) play(panorama(s,-30)) # again wider, but both sides switched play(panorama(s,-50)) # the same as mirror(s) ## End(Not run)