wavelength 1.0.0
Loading...
Searching...
No Matches
Mixer::VolumeRamp Class Reference

Ramp that sends one synthesiser channel's volume. More...

#include <mixer.h>

Inheritance diagram for Mixer::VolumeRamp:
Collaboration diagram for Mixer::VolumeRamp:

Public Member Functions

 ~VolumeRamp () override=default
 Destroy the object.
 VolumeRamp (Scheduler *pScheduler, float fValue, unsigned char nChannel)
 Construct a ramp at full volume for a channel.
void Apply (float fValue, int nTick) override
 Send a volume to the channel as MIDI controller 17.
Public Member Functions inherited from Ramp
 Ramp (Scheduler *pScheduler, float fValue)
 Construct a ramp that holds a value.
virtual ~Ramp ()
 Stop the ramp.
void MoveTo (int nTicks, int nStepTicks, float fTarget)
 Move from the current value to a target.
void Move (int nTicks, int nStepTicks, float fFrom, float fTarget)
 Move from one value to another.
void Stop ()
 Withdraw the next step, leaving the value where it is.
float GetValue () const
 Report the current value.

Detailed Description

Ramp that sends one synthesiser channel's volume.

The RTTI records the class as deriving from Ramp.

Constructor & Destructor Documentation

◆ ~VolumeRamp()

Mixer::VolumeRamp::~VolumeRamp ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x0033bca8
Ghidra address:
PAL: 0x003a91e0

◆ VolumeRamp()

Mixer::VolumeRamp::VolumeRamp ( Scheduler * pScheduler,
float fValue,
unsigned char nChannel )
inline

Construct a ramp at full volume for a channel.

Inline. The Mixer constructor expands it.

Parameters
pSchedulerThe scheduler the steps are queued on.
fValueThe starting volume.
nChannelThe channel.

Member Function Documentation

◆ Apply()

void Mixer::VolumeRamp::Apply ( float fValue,
int nTick )
overridevirtual

Send a volume to the channel as MIDI controller 17.

Parameters
fValueThe volume.
nTickUnused.
Ghidra address:
NTSC-U/C: 0x0033bd18
Ghidra address:
PAL: 0x003a9250

Implements Ramp.


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