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

This sketch demonstrates how to use the getEffect(int) method of an Effectable class. The class used here is AudioPlayer, but you can also get effects from AudioInput, AudioOutput, and AudioSample objects. Effects added to an Effectable are stored in the order they are added. They are indexed starting from zero. So if you want to get the third effect in the chain you'd call getEffect(2). This sketch adds four low pass filters to the player. You can then get one by pressing '1', '2', '3', or '4', the cutoff frequency of the most recently gotten filter will be displayed on the screen.

Source code: getEffect waveform

Built with Processing