49 void OnNote(
unsigned char nNote,
int nDuration)
override;
58 mTickOffset = nTickOffset;
115 virtual void Start(
int nPlayer,
int nTickOffset);
169 void SendPitchBend(
float fPitch);
178 void SwitchPiece(
int nPiece);
190 std::vector<std::unique_ptr<MuseLooper>> mLoopers;
191 std::vector<Ptr<Muse>> mCopies;
Receiver of each note a muse starts.
Definition muse.h:20
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
Owner of one reference to an Attachment.
Definition ptr.h:16
Receiver that shows each note a piece starts on the scratching player's track.
Definition scratcher.h:31
int GetTickOffset() const
Definition scratcher.h:52
~ScratchNoteCB() override=default
Destroy the object.
void SetPlayer(int nPlayer)
Definition scratcher.h:67
void SetTickOffset(int nTickOffset)
Definition scratcher.h:57
int GetPlayer() const
Definition scratcher.h:62
void OnNote(unsigned char nNote, int nDuration) override
Show a note at the current tick.
virtual void Start(int nPlayer, int nTickOffset)
Start scratching for a player.
virtual int IsScratching()
Report whether the scratcher is scratching.
virtual void Stop()
Stop scratching and bend the channel back.
virtual int GetLoopLength()
Report the ticks of one loop of the pieces.
Scratcher(Muse *pFirst, Muse *pSecond, Muse *pThird, int nQuantumTicks, int nLengthTicks, int nChannel)
Construct a scratcher over three recorded pieces.
virtual ~Scratcher()
Stop scratching and release the pieces.
virtual void SetPosition(float fPosition)
Pick the piece from the horizontal position of the stick.
virtual void SetPitch(float fPitch)
Set the pitch.
static constexpr int kNumPieces
Number of pieces, one for each stick position.
Definition scratcher.h:23