Package wellen
Class ToneEngineOSC
java.lang.Object
wellen.ToneEngine
wellen.ToneEngineOSC
implementation of
ToneEngine
sending OSC messages to external network devices.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class wellen.ToneEngine
INSTRUMENT_EMPTY, INSTRUMENT_WITH_OSCILLATOR, INSTRUMENT_WITH_OSCILLATOR_ADSR, INSTRUMENT_WITH_OSCILLATOR_ADSR_FILTER_LFO
-
Constructor Summary
ConstructorDescriptionToneEngineOSC
(String pHostIP) ToneEngineOSC
(String pTransmitIP, int pPortTransmit) -
Method Summary
Modifier and TypeMethodDescriptionvoid
control_change
(int pCC, int pValue) instrument
(int pInstrumentID) ArrayList<? extends Instrument>
boolean
void
note_off()
turns off the last played note.void
note_off
(int note) turn off a notevoid
note_on
(int note, int velocity) play a notevoid
pitch_bend
(int pValue) void
replace_instrument
(Instrument pInstrument) void
stop()
Methods inherited from class wellen.ToneEngine
create, create, get_buffer, get_buffer_left, get_buffer_right, note_on
-
Field Details
-
OSC_ADDR_PATTERN_CONTROLCHANGE
- See Also:
-
OSC_ADDR_PATTERN_NOTE_OFF
- See Also:
-
OSC_ADDR_PATTERN_NOTE_ON
- See Also:
-
OSC_ADDR_PATTERN_PITCHBEND
- See Also:
-
OSC_ADDR_PATTERN_PROGRAMCHANGE
- See Also:
-
-
Constructor Details
-
ToneEngineOSC
-
ToneEngineOSC
-
ToneEngineOSC
public ToneEngineOSC()
-
-
Method Details
-
stop
public void stop()- Overrides:
stop
in classToneEngine
-
note_on
public void note_on(int note, int velocity) Description copied from class:ToneEngine
play a note- Specified by:
note_on
in classToneEngine
- Parameters:
note
- pitch of note ranging from 0 to 127velocity
- volume of note ranging from 0 to 127
-
note_off
public void note_off(int note) Description copied from class:ToneEngine
turn off a note- Specified by:
note_off
in classToneEngine
- Parameters:
note
- pitch of note to turn off
-
note_off
public void note_off()Description copied from class:ToneEngine
turns off the last played note.- Specified by:
note_off
in classToneEngine
-
control_change
public void control_change(int pCC, int pValue) - Specified by:
control_change
in classToneEngine
-
pitch_bend
public void pitch_bend(int pValue) - Specified by:
pitch_bend
in classToneEngine
-
is_playing
public boolean is_playing()- Specified by:
is_playing
in classToneEngine
-
instrument
- Specified by:
instrument
in classToneEngine
-
instrument
- Specified by:
instrument
in classToneEngine
-
instruments
- Specified by:
instruments
in classToneEngine
-
replace_instrument
- Specified by:
replace_instrument
in classToneEngine
-