I want to add very simple, real time audio output to my Processing program. Can someone suggest the easiest way? I checked the external sound libraries, there are nine different ones listed at
http://processing.org/reference/libraries/#sound but they all appear to be focused on music composition, rather than simple low-level raw sound.
What I want is something like: beep(pitch, volume, duration) and I get a simple beep tone of that pitch, that many milliseconds long. No wavetable synthesis, scoring system etc.
The "SoundCipher" appears to be simple, because I can get one note played like this:
import arb.soundcipher.*; // simple audio library "SoundCipher" (tempo=120 bpm)
SoundCipher sc = new SoundCipher(this); // sound object for audio feedback
sc.playNote(60, 100, 1); // pitch number, volume, duration in beats
However this is a shaped note with an attack-decay-sustain-release volume envelope, which limits how fast I can make separate notes. I want a raw beep with no volume envelope. Is there a simple way to do this?
What I want is something like: beep(pitch, volume, duration) and I get a simple beep tone of that pitch, that many milliseconds long. No wavetable synthesis, scoring system etc.
The "SoundCipher" appears to be simple, because I can get one note played like this:
import arb.soundcipher.*; // simple audio library "SoundCipher" (tempo=120 bpm)
SoundCipher sc = new SoundCipher(this); // sound object for audio feedback
sc.playNote(60, 100, 1); // pitch number, volume, duration in beats
However this is a shaped note with an attack-decay-sustain-release volume envelope, which limits how fast I can make separate notes. I want a raw beep with no volume envelope. Is there a simple way to do this?
1