NotePairScoreElement


class NotePairScoreElement {
public:
  MIDI_msg msg;
  NotePairScoreTime dur;

  void play(NotePairScoreScale, ScheduleTime) const;
  NotePairScoreElement& operator=(const NotePairScoreElement& npse);
  Bool operator==(const NotePairScoreElement& npse) const;
};
MIDI_msg msg
This is the MIDI_msg which this element will play. For a note pair, this is the note-on message.
NotePairScoreTime dur
This is the length of the note, in units of demimilliseconds at the default score speed. If the element is not a note pair, this is -1.
void play(NotePairScoreScale scale, ScheduleTime now) const
This causes the NotePairScoreElement's MIDI_msg to be played out, and, if it is a note-pair, the corresponding note-off to be scheduled. scale should be the current scale of the score, and now should be the current time.
NotePairScoreElement& operator=(const NotePairScoreElement& npse)
This assigns this NotePairScoreElement to have the same contents as npse.
Bool operator==(const NotePairScoreElement& npse) const
This returns True if npse has the same contents as this NotePairScoreElement.

Modified 1 June 1996 pepellet@mit.edu