This sketch demonstrates how to use the shiftVolume, shiftGain, shiftBalance,
and shiftPan methods of a Controller object. The class used here is an AudioOutput
but you can also shift controls of AudioSample, AudioSnippet, AudioInput,
and AudioPlayer objects. The shift methods allow you to transition the value of a control from one
value to another one over a given number of milliseconds. Shifting will only work if the control is available
(see the example hasControl for more about that). Also, please note that the shift methods of Controller
are not the same thing as the method FloatControl.shift. A Controller's shift methods will
always work if a control is available, but a FloatControl's shift method will only work if the control
supports shifting (see the example Controller >> FloatControl >> shift for more).
Press 'v' to shift the volume.
Press 'g' to shift the gain.
Press 'b' to shift the balance.
Press 'p' to shift the pan.
Source code: shifting waveform
Built with Processing