abc.midi
Class OldMidiConverterAbstract

java.lang.Object
  extended byabc.midi.OldMidiConverterAbstract
All Implemented Interfaces:
MidiConverterInterface
Direct Known Subclasses:
OldBasicMidiConverter

public abstract class OldMidiConverterAbstract
extends java.lang.Object
implements MidiConverterInterface

MidiConverter class defines various static methods to convert abc related stuff to midi : notes, tunes etc...


Constructor Summary
OldMidiConverterAbstract()
           
 
Method Summary
abstract  javax.sound.midi.MidiEvent[] getMidiEventsFor(MultiNote notes, KeySignature key, long lastPosInTicks)
          Returns the corresponding midi events for a multi note.
abstract  javax.sound.midi.MidiEvent[] getMidiEventsFor(Note note, KeySignature key, long lastPosInTicks)
          Returns the corresponding midi events for a note.
abstract  javax.sound.midi.MidiEvent[] getMidiEventsFor(Tempo tempo, long lastPosInTicks)
          Returns the corresponding midi events for a tempo change.
abstract  javax.sound.midi.MidiEvent[] getMidiEventsFor(Tuplet tuplet, KeySignature key, long lastPosInTicks)
          Returns the corresponding midi events for a tuplet.
 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

OldMidiConverterAbstract

public OldMidiConverterAbstract()
Method Detail

toMidiSequence

public javax.sound.midi.Sequence toMidiSequence(Tune tune)
Converts the given tune to a midi sequence.

Specified by:
toMidiSequence in interface MidiConverterInterface
Parameters:
tune - The tune to be converted.
Returns:
The midi sequence of the tune.

getMidiEventsFor

public abstract javax.sound.midi.MidiEvent[] getMidiEventsFor(Note note,
                                                              KeySignature key,
                                                              long lastPosInTicks)
                                                       throws javax.sound.midi.InvalidMidiDataException
Returns the corresponding midi events for a note.

Throws:
javax.sound.midi.InvalidMidiDataException

getMidiEventsFor

public abstract javax.sound.midi.MidiEvent[] getMidiEventsFor(Tuplet tuplet,
                                                              KeySignature key,
                                                              long lastPosInTicks)
                                                       throws javax.sound.midi.InvalidMidiDataException
Returns the corresponding midi events for a tuplet.

Throws:
javax.sound.midi.InvalidMidiDataException

getMidiEventsFor

public abstract javax.sound.midi.MidiEvent[] getMidiEventsFor(Tempo tempo,
                                                              long lastPosInTicks)
                                                       throws javax.sound.midi.InvalidMidiDataException
Returns the corresponding midi events for a tempo change.

Throws:
javax.sound.midi.InvalidMidiDataException

getMidiEventsFor

public abstract javax.sound.midi.MidiEvent[] getMidiEventsFor(MultiNote notes,
                                                              KeySignature key,
                                                              long lastPosInTicks)
                                                       throws javax.sound.midi.InvalidMidiDataException
Returns the corresponding midi events for a multi note.

Throws:
javax.sound.midi.InvalidMidiDataException