53 void OnNote(
unsigned char nNote, [[maybe_unused]]
int nDuration)
override {
54 mContour->mCurrentNote = nNote;
113 void AddNote(
int nTick,
unsigned char nKey,
unsigned char nVelocity,
int nDuration);
210 unsigned char mChannel;
213 std::vector<ContourNote> mNotes;
214 unsigned char mLowestKey;
215 unsigned char mHighestKey;
217 std::unique_ptr<AxeNoteCB> mNoteCB;
AxeNoteCB(AxeContour *pContour)
Construct the receiver of a contour.
Definition axecontour.h:42
~AxeNoteCB() override=default
Destroy the object.
void OnNote(unsigned char nNote, int nDuration) override
Record the note.
Definition axecontour.h:53
bool IsPlaying() const
Report whether the loop plays.
int GetNumNotes() const
Report the number of notes.
void SetNoteKey(int nIndex, unsigned char nKey)
Change the note number a note plays.
void Stop()
Stop the loop.
unsigned char GetChannel() const
Report the MIDI channel of the notes.
int GetPosition() const
Report the position in the loop.
unsigned char GetNoteKey(int nIndex) const
Report a note as written.
int GetLength()
Report the ticks of one loop.
~AxeContour()
Release the notes.
unsigned char GetLowestKey() const
Report the lowest note as written.
void AddNote(int nTick, unsigned char nKey, unsigned char nVelocity, int nDuration)
Add a note.
unsigned char GetHighestKey() const
Report the highest note as written.
void AddMuse(int nTick, Muse *pMuse)
Add a muse that is not a note, such as a controller change.
AxeContour(int nLength, unsigned char nChannel)
Construct an empty contour.
void Play(int nPosition)
Play the loop on the song scheduler.
Player that repeats a piece of music over a fixed number of ticks.
Definition muselooper.h:14
Receiver of each note a muse starts.
Definition muse.h:20
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
NoteMuseBase whose note can change after it is built.
Definition mutablenotemuse.h:15
Owner of one reference to an Attachment.
Definition ptr.h:16
One note of the contour, as written.
Definition axecontour.h:62
MutableNoteMuse * mMuse
Definition axecontour.h:64
unsigned char mKey
Definition axecontour.h:63