76 bool bSounding =
false;
77 if (mTick.mTick < pNote->
mTick) {
82 if (mTick.mTick < end.
mTick) {
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Receiver of engine messages.
Definition msgsink.h:37
virtual void Dispatch(Message *pMsg)
Accept a message.
int mTick
The song position, in MIDI ticks.
Definition musemsg.h:71
int mFound
Non-zero once a note sounds past mTick.
Definition notefinder.h:62
virtual void DispatchPriv(Message *pMsg)
Pass a NoteMsg to OnNote() and ignore every other message.
NoteFinder()
Start with no note found and the position at kTickInfinity.
Definition notefinder.h:25
void Search(const std::vector< TickObj< MuseMsg * > > *pMidi, Sch::Tick tick)
Pass every message of a MIDI range through Dispatch() against a position.
Definition notefinder.h:38
Event the game passes between a MsgSource and a MsgSink.
Definition notemsg.h:28
Sch::Tick mLength
The length of the note, in MIDI ticks.
Definition notemsg.h:168
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int mTick
The position, in MIDI ticks at 480 per quarter note.
Definition tick.h:153
One value at one song position.
Definition tickobj.h:20
constexpr int kTickMaximum
Largest finite position, from the bound Sch::Tick::IsInRange() accepts.
Definition tick.h:18
constexpr int kTickMinimum
Smallest finite position, from the bound Sch::Tick::IsInRange() accepts.
Definition tick.h:21