Package wellen
Class Tone
java.lang.Object
wellen.Tone
Tone
handles instruments and the playing of musical notes.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
control_change
(int CC, int value) static <T extends Instrument>
Tcreate_instrument
(Class<T> instrument_class, int ID) static void
enable_reverb
(float damping, float roomsize, float wet) static float[]
static float[]
static float[]
static ToneEngineDSP
static ToneEngineMIDI
static ToneEngine
instance()
static Instrument
static Instrument
instrument
(int ID) static ArrayList<? extends Instrument>
static boolean
static void
note_off()
static void
note_off
(int note) static void
note_on
(int note, int velocity) static void
note_on
(int note, int velocity, float duration) static void
pitch_bend
(int value) static void
replace_instrument
(Class<? extends Instrument> instrument_class, int ID) static void
replace_instrument
(Instrument instrument) static void
set_engine
(ToneEngine tone_engine) static ToneEngineDSP
start
(int configuration) static void
static void
static void
static void
static void
stop()
-
Method Details
-
control_change
public static void control_change(int CC, int value) -
create_instrument
-
enable_reverb
public static void enable_reverb(float damping, float roomsize, float wet) - Parameters:
damping
- default: 0.5roomsize
- default: 0.5wet
- default: 0.33
-
get_DSP_engine
-
get_buffer
public static float[] get_buffer() -
get_buffer_left
public static float[] get_buffer_left() -
get_buffer_right
public static float[] get_buffer_right() -
get_midi_engine
-
instance
-
instrument
-
instrument
-
instruments
-
is_playing
public static boolean is_playing() -
note_off
public static void note_off(int note) -
note_off
public static void note_off() -
note_on
public static void note_on(int note, int velocity, float duration) -
note_on
public static void note_on(int note, int velocity) -
pitch_bend
public static void pitch_bend(int value) -
replace_instrument
-
replace_instrument
-
set_engine
-
start
-
start
-
start
-
start
-
start
-
stop
public static void stop()
-