wavelength 1.0.0
Loading...
Searching...
No Matches
stutter.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/command.h"
4#include "os/ptr.h"
5
13class Stutter {
14public:
16 static constexpr int kNumChannels = 16;
17
25
33
44 void SetChannel(int nChannel, int nOn);
45
46private:
53 void Start();
54
61 void Stop();
62
69 void Open();
70
77 void Close();
78
86 void SetVolumes(bool bOpen);
87
96 void SetVolume(int nChannel, bool bOpen);
97
98 int mRunning;
99 int mChannels[kNumChannels];
100 int mPeriodTicks;
101 Ptr<Command> mOpenCmd;
102 Ptr<Command> mCloseCmd;
103};
Owner of one reference to an Attachment.
Definition ptr.h:16
~Stutter()
Stop the effect.
Stutter()
Construct a stopped effect, with the gate period chosen from the tempo of the song.
static constexpr int kNumChannels
Number of MIDI channels.
Definition stutter.h:16
void SetChannel(int nChannel, int nOn)
Choose or release a channel, and start or stop the effect to match.