|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.midi.MidiConverterAbstract
MidiConverter class defines various static methods to convert abc related stuff to midi : notes, tunes etc...
Constructor Summary | |
MidiConverterAbstract()
|
Method Summary | |
abstract javax.sound.midi.MidiMessage |
getMidiEventFor(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)
|
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 MidiConverterInterface
tune
- The tune to be converted.
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 getMidiEventFor(Tempo tempo) throws javax.sound.midi.InvalidMidiDataException
javax.sound.midi.InvalidMidiDataException
public static long getNoteLengthInTicks(MultiNote note)
public static byte getMidiNoteNumber(Note note, KeySignature key)
note
- The note.key
- The key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |