This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

This sketch demonstrates how to use the disableSignal(int) method of a Polyphonic class. Currently the only Polyphonic class in Minim is AudioOutput. This sketch adds four sine waves to the output and you can disable them by pressing '1', '2', '3', and '4'. Signals are indexed starting from zero, so if you want to disable the third signal you'd call disableSignal(2). Disabling a signal means that it will not be used when a Polyphonic class is asked to produce a new buffer of audio, but the signal remains in the signal chain so that you can enable it again without having to re-add it to the chain.

Source code: disableSignalByIndex waveform

Built with Processing