wavelength 1.0.0
Loading...
Searching...
No Matches
axer.h
Go to the documentation of this file.
1#pragma once
2
3#include "gs/axecontour.h"
4#include "gs/axeharmony.h"
5
14class Axer {
15public:
26 Axer(AxeContour *pContour, const AxeHarmony *pHarmony, int nReserved, float fOutputLevel);
27
35
43 void SetContour(AxeContour *pContour);
44
52 void SetHarmony(const AxeHarmony *pHarmony);
53
61 int GetLength();
62
70 void Activate(int nPosition);
71
78 void Deactivate();
79
87 int IsActive() const;
88
96 void SetX(float fX);
97
105 void SetSweep(float fSweep);
106
107private:
115 void FitContour(int nTranspose);
116
124 void ApplySweep(float fSweep);
125
132 void ApplyReserved();
133
134 AxeContour *mContour;
135 const AxeHarmony *mHarmony;
136 int mReserved08; // +0x08, stored by the constructor, not read here.
137 float mOutputLevel;
138 unsigned char mChannel;
139 int mTranspose;
140 float mSweep;
141 int mActive;
142};
The notes AxeTrack plays on a guitar track, looped over the length of the track.
Definition axecontour.h:19
The notes of one harmony of a guitar track, from one song position onward.
Definition axeharmony.h:13
void Deactivate()
Stop playing and restore the full output level.
void SetX(float fX)
Transpose the contour within the range of the harmony from the horizontal stick position.
~Axer()
Deactivate the voice.
void SetHarmony(const AxeHarmony *pHarmony)
Change the harmony and fit the contour to it.
void Activate(int nPosition)
Start playing the contour unless the voice is active.
void SetContour(AxeContour *pContour)
Change the contour, carrying the position of a playing contour over to the new one.
Axer(AxeContour *pContour, const AxeHarmony *pHarmony, int nReserved, float fOutputLevel)
Construct an inactive voice.
void SetSweep(float fSweep)
Set the sweep of the software filter.
int IsActive() const
Report whether the voice is active.
int GetLength()
Report the ticks of one loop of the contour.