Class MidiInstrument
java.lang.Object
eu.bandm.music.applications.feldproj.MidiInstrument
Description of one particular instrument, its midi realization and the
three register ranges, as referred to by the Feldman notation.
-
Field Summary
Modifier and TypeFieldDescription(package private) final int[]
The upper limits (inclusive) of the three registers ("loe", "middle", "high"), as midi key numbers.static final int
Used as the normal dynamic.static final int
An even lower dynami, currently used to symbolize the harmonics..(package private) final int[]
The lower limits (inclusive) of the three registers ("loe", "middle", "high"), as midi key numbers.(package private) final String
evident, used for diagnosis output only.(package private) final int
General Midi program number.static final MidiInstrument
evidentstatic final MidiInstrument
Keeps itself to the range of the other instrumentsstatic final MidiInstrument
Has a genuine wide piano range, in contrast to all other instruments.static final MidiInstrument
evidentstatic final MidiInstrument
evidentstatic final MidiInstrument
evidentstatic final MidiInstrument
evidentstatic final MidiInstrument
evidentstatic final MidiInstrument
evidentstatic final MidiInstrument
evident(package private) final int
Midi velocity for all events. -
Constructor Summary
ConstructorDescriptionMidiInstrument
(String name, int program, int velocity, int lolo, int lohi, int midlo, int midhi, int hilo, int hihi) Sets all parameters explicitlyMidiInstrument
(String name, int program, int velocity, MidiInstrument proto) Sets some parameters explicitly but copies the register definitions from the prototype. -
Method Summary
-
Field Details
-
lowDynamic
public static final int lowDynamicUsed as the normal dynamic.- See Also:
-
lowerDynamic
public static final int lowerDynamicAn even lower dynami, currently used to symbolize the harmonics..- See Also:
-
lowLimit
final int[] lowLimitThe lower limits (inclusive) of the three registers ("loe", "middle", "high"), as midi key numbers. -
highLimit
final int[] highLimitThe upper limits (inclusive) of the three registers ("loe", "middle", "high"), as midi key numbers. -
name
evident, used for diagnosis output only. -
program
final int programGeneral Midi program number. -
velocity
final int velocityMidi velocity for all events. -
std_flute
evident -
std_trumpet
evident -
std_violin
evident -
std_violin_pizz
evident -
std_violin_harmonic
evident -
std_violoncello
evident -
std_violoncello_pizz
evident -
std_violoncello_harmonic
evident -
std_piano_integrated
Keeps itself to the range of the other instruments -
std_piano_wide
Has a genuine wide piano range, in contrast to all other instruments.
-
-
Constructor Details
-
MidiInstrument
public MidiInstrument(String name, int program, int velocity, int lolo, int lohi, int midlo, int midhi, int hilo, int hihi) Sets all parameters explicitly- Parameters:
name
- , seename
.program
- , seeprogram
.velocity
- , seevelocity
.lolo
- , lower limit of the low registerlohi
- , upper limit of the low registermidlo
- , lower limit of the middle registermidhi
- , upper limit of the middle registerhilo
- , lower limit of the upper registerhihi
- , upper limit of the upper register
-
MidiInstrument
Sets some parameters explicitly but copies the register definitions from the prototype.
-