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

This sketch demonstrates how to use the getSignal(int) method of a Polyphonic class. Currently the only Polyphonic class in Minim is AudioOutput. This sketch adds four sine waves to the output. You can get one by pressing '1', '2', '3', or '4'. The frequency of the sine wave will be shown on the screen. Signals are indexed starting from zero, so if you want to get the third signal you'd call getSignal(2). Signals are returned from getSignal as AudioSignals, so if you want assign the returned signal to a variable of a derived type, you have to cast to that type first. See the code for details.

Source code: getSignal waveform

Built with Processing