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
13
class
Stutter
{
14
public
:
16
static
constexpr
int
kNumChannels
= 16;
17
24
Stutter
();
25
32
~Stutter
();
33
44
void
SetChannel
(
int
nChannel,
int
nOn);
45
46
private
:
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
};
Ptr
Owner of one reference to an Attachment.
Definition
ptr.h:16
Stutter::~Stutter
~Stutter()
Stop the effect.
Stutter::Stutter
Stutter()
Construct a stopped effect, with the gate period chosen from the tempo of the song.
Stutter::kNumChannels
static constexpr int kNumChannels
Number of MIDI channels.
Definition
stutter.h:16
Stutter::SetChannel
void SetChannel(int nChannel, int nOn)
Choose or release a channel, and start or stop the effect to match.
command.h
ptr.h
src
game
stutter.h
Generated by
1.15.0