Minim  
core | ugens | analysis  
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 using Processing you've already got Minim! So feel free to peruse this documentation and start playing with examples. If you prefer Javadocs, we got those too!

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.

Download: Minim 2.2.0 Zip or visit the Github 2.2.0 release page

If you have any questions about using the library you can start by checking the Processing forum or send me a private message there. If you find bugs, please report them on the Github issues page.

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!

UGen

UGen
channelCount ( )
getLastValues ( )
patch ( )
printInputs ( )
sampleRate ( )
setChannelCount ( )
setSampleRate ( )
tick ( )
unpatch ( )

UGen.InputType

UGen.InputType
AUDIO
CONTROL
valueOf ( )
values ( )

UGen.UGenInput

UGen.UGenInput
channelCount ( )
getIncomingUGen ( )
getInputType ( )
getInputTypeAsString ( )
getLastValue ( )
getLastValues ( )
getOuterUGen ( )
isPatched ( )
printInput ( )
setChannelCount ( )
setIncomingUGen ( )
setLastValue ( )

MultiChannelBuffer

MultiChannelBuffer
getBufferSize ( )
getChannel ( )
getChannelCount ( )
getSample ( )
set ( )
setBufferSize ( )
setChannel ( )
setChannelCount ( )
setSample ( )

Minim

Minim
AIFC
AIFF
AU
LOOP_CONTINUOUSLY
MONO
SND
STEREO
WAV
createRecorder ( )
createSample ( )
debugOff ( )
debugOn ( )
getInputStream ( )
getLineIn ( )
getLineOut ( )
loadFile ( )
loadFileIntoBuffer ( )
loadFileStream ( )
loadSample ( )
setInputMixer ( )
setOutputMixer ( )
stop ( )

AudioSample

AudioSample
LEFT
RIGHT
left
mix
right
addListener ( )
bufferSize ( )
getBalance ( )
getChannel ( )
getControl ( )
getFormat ( )
getGain ( )
getMetaData ( )
getPan ( )
getVolume ( )
isMuted ( )
length ( )
mute ( )
removeListener ( )
sampleRate ( )
setBalance ( )
setGain ( )
setPan ( )
setVolume ( )
shiftBalance ( )
shiftGain ( )
shiftPan ( )
shiftVolume ( )
stop ( )
trigger ( )
type ( )
unmute ( )

AudioRecorder

AudioRecorder
beginRecord ( )
endRecord ( )
isRecording ( )
save ( )
setRecordSource ( )

AudioPlayer

AudioPlayer
left
mix
right
addListener ( )
bufferSize ( )
cue ( )
getBalance ( )
getControl ( )
getFormat ( )
getGain ( )
getMetaData ( )
getPan ( )
getVolume ( )
isLooping ( )
isMuted ( )
isPlaying ( )
length ( )
loop ( )
loopCount ( )
mute ( )
pause ( )
play ( )
position ( )
removeListener ( )
rewind ( )
sampleRate ( )
setBalance ( )
setGain ( )
setLoopPoints ( )
setPan ( )
setVolume ( )
shiftBalance ( )
shiftGain ( )
shiftPan ( )
shiftVolume ( )
skip ( )
type ( )
unmute ( )

AudioOutput

AudioOutput
left
mix
right
addListener ( )
bufferSize ( )
getBalance ( )
getControl ( )
getDurationFactor ( )
getFormat ( )
getGain ( )
getNoteOffset ( )
getPan ( )
getTempo ( )
getVolume ( )
isMuted ( )
mute ( )
pauseNotes ( )
playNote ( )
removeListener ( )
resumeNotes ( )
sampleRate ( )
setBalance ( )
setDurationFactor ( )
setGain ( )
setNoteOffset ( )
setPan ( )
setTempo ( )
setVolume ( )
shiftBalance ( )
shiftGain ( )
shiftPan ( )
shiftVolume ( )
type ( )
unmute ( )

AudioMetaData

AudioMetaData
album ( )
author ( )
comment ( )
composer ( )
copyright ( )
date ( )
disc ( )
encoded ( )
fileName ( )
genre ( )
length ( )
orchestra ( )
publisher ( )
sampleFrameCount ( )
title ( )
track ( )

AudioListener

samples ( )

AudioInput

AudioInput
left
mix
right
addListener ( )
bufferSize ( )
disableMonitoring ( )
enableMonitoring ( )
getBalance ( )
getControl ( )
getFormat ( )
getGain ( )
getPan ( )
getVolume ( )
isMonitoring ( )
isMuted ( )
mute ( )
removeListener ( )
sampleRate ( )
setBalance ( )
setGain ( )
setPan ( )
setVolume ( )
shiftBalance ( )
shiftGain ( )
shiftPan ( )
shiftVolume ( )
type ( )
unmute ( )

AudioBuffer

get ( )
level ( )
size ( )
toArray ( )