This sketch demonstrates how to use the type method of a Recordable class.
The class used here is AudioOutput, but you can also get the type of AudioInput,
AudioPlayer, and AudioSample objects. The type method returns
the number of channels the Recordable has: either 1 or 2. For code clarity you can compare these
to the static constants Minim.MONO and Minim.STEREO.
Source code: type
Built with Processing