|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectddf.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 called| Method Detail |
|---|
public void noteOn(float dur)
noteOn in interface Instrumentdur - 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 | |||||||||