|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ddf.minim.ugens.DefaultInstrument
public class DefaultInstrument
You can use this default instrument to make sound if you don't want to write your own instrument. It's a good way to start playing around with the playNote method of AudioOutput. The default instrument makes a fuzzy triangle wave sound.
Constructor Summary | |
---|---|
DefaultInstrument(float frequency,
AudioOutput output)
Construct a default instrument that will play a note at the given frequency on the given output. |
Method Summary | |
---|---|
void |
noteOff()
Turn off the default instrument. |
void |
noteOn(float dur)
Turn on the default instrument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInstrument(float frequency, AudioOutput output)
frequency
- the frequency of the noteoutput
- the output to play the note on when noteOn is calledMethod Detail |
---|
public void noteOn(float dur)
noteOn
in interface Instrument
dur
- The duration of the note.public void noteOff()
noteOff
in interface Instrument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |