|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MidiConverterInterface
This interface defines methods that should be implemented for any "tune to midi" converter. Improved converters could generate midi sequences depending on the type of tune rhythm, have nice ornaments features etc etc...
| Method Summary | |
|---|---|
javax.sound.midi.Instrument |
getInstrument()
Returns the instrument currently used for sequence playback. |
void |
setInstrument(javax.sound.midi.Instrument instr)
Sets the instrument to be used for sequence playback. |
javax.sound.midi.Sequence |
toMidiSequence(Tune tune)
Returns the midi sequence corresponding to the given tune. |
| Method Detail |
|---|
javax.sound.midi.Sequence toMidiSequence(Tune tune)
tune - A tune with a score.
javax.sound.midi.Instrument getInstrument()
void setInstrument(javax.sound.midi.Instrument instr)
throws javax.sound.midi.MidiUnavailableException
instr - The instrument to be used for sequence playback.
javax.sound.midi.MidiUnavailableException
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||