Description:
The interface VoiceEvt is the "parent" to a
group of child classes representing MIDI voice event messages.
These classes will usually be added to a linked list as type
Event. The child classes instance variable id can be used
to distinguish easily between the child event types.
//This example shows how to add voice events to a list
class makeScore
{ List violinPart = new List(); VoiceEvt voiceEvt = new CChange(); violinPart.insertAtBack(voiceEvt);
}
//This example prints the contents of a voice event list
//using the abstract method print().
class play_part
{ ListNode node = violinPart.getFirstNode(); while(node != null) { VoiceEvt voiceEvt = (VoiceEvt) node.getObject(); voiceEvt.print(); }
}