|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabc.midi.MidiConverterAbstract
public abstract class MidiConverterAbstract
MidiConverter class defines various static methods to convert abc related stuff to midi : notes, tunes etc...
| Constructor Summary | |
|---|---|
MidiConverterAbstract()
|
|
| Method Summary | |
|---|---|
javax.sound.midi.Instrument |
getInstrument()
Returns the instrument currently used for sequence playback. |
abstract javax.sound.midi.MidiMessage[] |
getMidiMessagesFor(Tempo tempo)
Returns the corresponding midi events for a tempo change. |
static byte |
getMidiNoteNumber(Note note,
KeySignature key)
Returns the midi note number corresponding a note in the given key. |
static long |
getNoteLengthInTicks(MultiNote note)
Returns the length of the multi note in ticks. |
abstract javax.sound.midi.MidiMessage[] |
getNoteOffMessageFor(Note note,
KeySignature key)
|
abstract javax.sound.midi.MidiMessage[] |
getNoteOneMessageFor(Note note,
KeySignature key)
|
void |
setInstrument(javax.sound.midi.Instrument instr)
Sets the instrument to be used for sequence playback. |
javax.sound.midi.Sequence |
toMidiSequence(Tune tune)
Converts the given tune to a midi sequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MidiConverterAbstract()
| Method Detail |
|---|
public javax.sound.midi.Sequence toMidiSequence(Tune tune)
toMidiSequence in interface MidiConverterInterfacetune - The tune to be converted.
public javax.sound.midi.Instrument getInstrument()
getInstrument in interface MidiConverterInterface
public void setInstrument(javax.sound.midi.Instrument instr)
throws javax.sound.midi.MidiUnavailableException
setInstrument in interface MidiConverterInterfaceinstr - The instrument to be used for sequence playback.
javax.sound.midi.MidiUnavailableException
public abstract javax.sound.midi.MidiMessage[] getNoteOneMessageFor(Note note,
KeySignature key)
throws javax.sound.midi.InvalidMidiDataException
javax.sound.midi.InvalidMidiDataException
public abstract javax.sound.midi.MidiMessage[] getNoteOffMessageFor(Note note,
KeySignature key)
throws javax.sound.midi.InvalidMidiDataException
javax.sound.midi.InvalidMidiDataException
public abstract javax.sound.midi.MidiMessage[] getMidiMessagesFor(Tempo tempo)
throws javax.sound.midi.InvalidMidiDataException
javax.sound.midi.InvalidMidiDataExceptionpublic static long getNoteLengthInTicks(MultiNote note)
public static byte getMidiNoteNumber(Note note,
KeySignature key)
note - The note.key - The key this note should refer to for accidentals.
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||