40 unsigned char nVelocity,
42 unsigned char nChannel,
102 void NoteOn(
int nTick);
105 unsigned char mVelocity;
106 unsigned char mChannel;
Receiver of engine messages.
Definition msgsink.h:37
Owner a MusePlayer reports back to.
Definition museparent.h:18
MusePlayer()
Construct a player with the next serial number.
NotePlayer(unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel, MuseParent *pParent, Sch::TickClock *pClock)
Retain the note and shorten its length by two ticks, keeping at least one.
void OnCommand(int nTick)
Send the note-off at a song position and report the player finished to mParent.
virtual int DisplacesSiblings()
virtual void Start(MsgSink *pSink)
Send the note-on to a sink and schedule the note-off.
virtual void Stop()
Send the note-off now and withdraw the scheduled command, when the note is sounding.
virtual ~NotePlayer()
Stop the note through this class's Stop().
Handle that identifies one batch of commands the scheduler has queued.
Definition cmdid.h:35
Pausable view of scheduler time, together with the tempo that maps it to a song position.
Definition tickclock.h:40