abc.midi
Class BasicMidiConverter

java.lang.Object
  extended byabc.midi.MidiConverterAbstract
      extended byabc.midi.BasicMidiConverter
All Implemented Interfaces:
MidiConverterInterface
Direct Known Subclasses:
BasicPositionableMidiConverter

public class BasicMidiConverter
extends MidiConverterAbstract

A basic midi converter that just plays melody, ignores ornaments and chords.


Constructor Summary
BasicMidiConverter()
           
 
Method Summary
 javax.sound.midi.MidiMessage getMidiEventFor(Tempo tempo)
          Returns the corresponding midi events for a tempo change.
 javax.sound.midi.MidiMessage[] getNoteOffMessageFor(Note note, KeySignature key)
           
 javax.sound.midi.MidiMessage[] getNoteOneMessageFor(Note note, KeySignature key)
           
 
Methods inherited from class abc.midi.MidiConverterAbstract
getMidiNoteNumber, getNoteLengthInTicks, toMidiSequence
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMidiConverter

public BasicMidiConverter()
Method Detail

getNoteOneMessageFor

public javax.sound.midi.MidiMessage[] getNoteOneMessageFor(Note note,
                                                           KeySignature key)
                                                    throws javax.sound.midi.InvalidMidiDataException
Specified by:
getNoteOneMessageFor in class MidiConverterAbstract
Throws:
javax.sound.midi.InvalidMidiDataException

getNoteOffMessageFor

public javax.sound.midi.MidiMessage[] getNoteOffMessageFor(Note note,
                                                           KeySignature key)
                                                    throws javax.sound.midi.InvalidMidiDataException
Specified by:
getNoteOffMessageFor in class MidiConverterAbstract
Throws:
javax.sound.midi.InvalidMidiDataException

getMidiEventFor

public javax.sound.midi.MidiMessage getMidiEventFor(Tempo tempo)
                                             throws javax.sound.midi.InvalidMidiDataException
Description copied from class: MidiConverterAbstract
Returns the corresponding midi events for a tempo change.

Specified by:
getMidiEventFor in class MidiConverterAbstract
Throws:
javax.sound.midi.InvalidMidiDataException