Minim is an audio library that uses the JavaSound API, a bit of Tritonus, and Javazoom’s MP3SPI to provide an easy to use audio library for people developing in the Processing environment. The philosophy behind the API is to make integrating audio into your sketches as simple as possible while still providing a reasonable amount of flexibility for more advanced users. There are no callbacks and you do not ever need to directly manipulate sample arrays, all of the dirty work is handled for you.
Here are some of the features of Minim:
- AudioPlayer: Mono and Stereo playback of WAV, AIFF, AU, SND, and MP3 files.
- AudioMetaData: An object filled with metadata about a file, such as ID3 tags.
- AudioRecorder: Mono and Stereo audio recording either buffered or direct to disk.
- AudioInput: Mono and Stereo input monitoring.
- AudioOutput: Mono and Stereo sound synthesis.
- FFT: perform a Fourier Transform on audio data to generate a frequency spectrum.
- BeatDetect: a class for doing beat detection.
- A real-time synthesis framework based around unit generators, which we call UGens.
If you are not using Processing, you can still use Minim! We provide a constructor for the
Minim class that takes a plain
Object and you simply need to define two methods that we will find using reflection.
The download includes Processing examples and source code. Minim is licensed under the GNU Lesser General Public License (LGPL), a copy of which is included with the distribution.
If you’d like to contribute to the development of Minim, simply fork the project on Github and send pull requests when you’ve got code you’d like us to consider for inclusion in the library. Enjoy!