wavelength 1.0.0
Loading...
Searching...
No Matches
Stutter Class Reference

Remix effect that gates the volume of chosen mixer channels on and off in time with the song. More...

#include <stutter.h>

Public Member Functions

 Stutter ()
 Construct a stopped effect, with the gate period chosen from the tempo of the song.
 ~Stutter ()
 Stop the effect.
void SetChannel (int nChannel, int nOn)
 Choose or release a channel, and start or stop the effect to match.

Static Public Attributes

static constexpr int kNumChannels = 16
 Number of MIDI channels.

Detailed Description

Remix effect that gates the volume of chosen mixer channels on and off in time with the song.

The RTTI records only the command the class schedules. The class is not polymorphic. The effect runs while at least one channel is chosen: each gate period starts with the channels at their mixer volume and silences them half a period later.

Constructor & Destructor Documentation

◆ Stutter()

Stutter::Stutter ( )

Construct a stopped effect, with the gate period chosen from the tempo of the song.

Ghidra address:
NTSC-U/C: 0x00154720
Ghidra address:
PAL: 0x00155f88

◆ ~Stutter()

Stutter::~Stutter ( )

Stop the effect.

Ghidra address:
NTSC-U/C: 0x00154818
Ghidra address:
PAL: 0x00156080

Member Function Documentation

◆ SetChannel()

void Stutter::SetChannel ( int nChannel,
int nOn )

Choose or release a channel, and start or stop the effect to match.

A released channel returns to its mixer volume.

Parameters
nChannelThe channel.
nOn1 to choose the channel, 0 to release it.
Ghidra address:
NTSC-U/C: 0x001549c0
Ghidra address:
PAL: 0x00156228

Member Data Documentation

◆ kNumChannels

int Stutter::kNumChannels = 16
staticconstexpr

Number of MIDI channels.


The documentation for this class was generated from the following file: