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

Player of one guitar contour fitted to a harmony. More...

#include <axer.h>

Public Member Functions

 Axer (AxeContour *pContour, const AxeHarmony *pHarmony, int nReserved, float fOutputLevel)
 Construct an inactive voice.
 ~Axer ()
 Deactivate the voice.
void SetContour (AxeContour *pContour)
 Change the contour, carrying the position of a playing contour over to the new one.
void SetHarmony (const AxeHarmony *pHarmony)
 Change the harmony and fit the contour to it.
int GetLength ()
 Report the ticks of one loop of the contour.
void Activate (int nPosition)
 Start playing the contour unless the voice is active.
void Deactivate ()
 Stop playing and restore the full output level.
int IsActive () const
 Report whether the voice is active.
void SetX (float fX)
 Transpose the contour within the range of the harmony from the horizontal stick position.
void SetSweep (float fSweep)
 Set the sweep of the software filter.

Detailed Description

Player of one guitar contour fitted to a harmony.

The stick transposes the contour and sweeps the filter.

The class is not polymorphic. The RTTI of AxeTrack's vector of players includes the class name. AxeTrack builds one for each gem button. While active the voice sets the software effects of the synthesiser.

Constructor & Destructor Documentation

◆ Axer()

Axer::Axer ( AxeContour * pContour,
const AxeHarmony * pHarmony,
int nReserved,
float fOutputLevel )

Construct an inactive voice.

Parameters
pContourThe contour.
pHarmonyThe harmony.
nReservedStored and not read here.
fOutputLevelThe output level of the synthesiser while the voice is active.
Ghidra address:
NTSC-U/C: 0x00157628
Ghidra address:
PAL: 0x00158eb0

◆ ~Axer()

Axer::~Axer ( )

Deactivate the voice.

Ghidra address:
NTSC-U/C: 0x00157678
Ghidra address:
PAL: 0x00158f00

Member Function Documentation

◆ SetContour()

void Axer::SetContour ( AxeContour * pContour)

Change the contour, carrying the position of a playing contour over to the new one.

Parameters
pContourThe contour.
Ghidra address:
NTSC-U/C: 0x001576c0
Ghidra address:
PAL: 0x00158f48

◆ SetHarmony()

void Axer::SetHarmony ( const AxeHarmony * pHarmony)

Change the harmony and fit the contour to it.

Parameters
pHarmonyThe harmony.
Ghidra address:
NTSC-U/C: 0x00157738
Ghidra address:
PAL: 0x00158fc0

◆ GetLength()

int Axer::GetLength ( )

Report the ticks of one loop of the contour.

Returns
The ticks.
Ghidra address:
NTSC-U/C: 0x00157758
Ghidra address:
PAL: 0x00158fe0

◆ Activate()

void Axer::Activate ( int nPosition)

Start playing the contour unless the voice is active.

Parameters
nPositionThe position in the loop.
Ghidra address:
NTSC-U/C: 0x00157778
Ghidra address:
PAL: 0x00159000

◆ Deactivate()

void Axer::Deactivate ( )

Stop playing and restore the full output level.

Ghidra address:
NTSC-U/C: 0x00157800
Ghidra address:
PAL: 0x00159088

◆ IsActive()

int Axer::IsActive ( ) const

Report whether the voice is active.

Returns
Non-zero while active.
Ghidra address:
NTSC-U/C: 0x00157858
Ghidra address:
PAL: 0x001590e0

◆ SetX()

void Axer::SetX ( float fX)

Transpose the contour within the range of the harmony from the horizontal stick position.

Parameters
fXThe horizontal stick position, from -1 to 1.
Ghidra address:
NTSC-U/C: 0x00157860
Ghidra address:
PAL: 0x001590e8

◆ SetSweep()

void Axer::SetSweep ( float fSweep)

Set the sweep of the software filter.

A change of 0.02 or less is ignored.

Parameters
fSweepThe sweep.
Ghidra address:
NTSC-U/C: 0x00157940
Ghidra address:
PAL: 0x001591c8

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