|
wavelength 1.0.0
|
The state of one MIDI channel. More...
#include <channel.h>
Public Member Functions | |
| Channel () | |
| Construct a channel with the defaults Init() sets. | |
| void | ResetControllers () |
| Reset the controllers ResetAllControllers() covers, retaining the bank, program, pitch bend, and transposition. | |
| void | Init () |
| Reset every field, clearing the bank and program. | |
| void | SetTranspose (signed char transpose) |
| Set the transposition. | |
Public Attributes | |
| int | mBank |
| int | mProgram |
| unsigned char | mVolume |
| unsigned char | mExpression |
| unsigned char | mPan |
| signed char | mPitchBendSemitones |
| signed char | mPitchBendCents |
| signed char | mTranspose |
| unsigned char | mPriority |
| unsigned char | mBusMode |
| unsigned short | mBus |
| unsigned int | mDetune |
| unsigned int | mStereo |
| unsigned int | mMonophonic |
| unsigned char | mControllerEnable [kNumControllerEnables] |
Static Public Attributes | |
| static constexpr int | kNoBank = -1 |
| static constexpr int | kNoProgram = -1 |
| static constexpr unsigned char | kBusModeFromSampleDesc = 4 |
| mBusMode value that defers to each sample descriptor's bus and mix. | |
The state of one MIDI channel.
The class has no RTTI, and its name is inferred from its role. A change to a controller whose mControllerEnable entry is at least 64 updates the channel's sounding voices at once; otherwise it applies only to later notes.
|
inline |
Construct a channel with the defaults Init() sets.
| void Channel::ResetControllers | ( | ) |
Reset the controllers ResetAllControllers() covers, retaining the bank, program, pitch bend, and transposition.
It is never called.
| void Channel::Init | ( | ) |
Reset every field, clearing the bank and program.
| void Channel::SetTranspose | ( | signed char | transpose | ) |
Set the transposition.
| transpose | Transposition in semitones. |
|
staticconstexpr |
mBank when the channel has no bank.
|
staticconstexpr |
mProgram when the channel has no program.
|
staticconstexpr |
mBusMode value that defers to each sample descriptor's bus and mix.
| int Channel::mProgram |
Program slot in the bank, or kNoProgram.
| unsigned char Channel::mVolume |
Volume, controller 7.
| unsigned char Channel::mExpression |
Expression, controller 17.
| unsigned char Channel::mPan |
Pan, controller 10, where 64 is the centre.
| signed char Channel::mPitchBendSemitones |
Pitch bend, whole semitones.
| signed char Channel::mPitchBendCents |
Pitch bend, remaining cents.
| signed char Channel::mTranspose |
Transposition in semitones, controller 91.
| unsigned char Channel::mPriority |
Voice priority, controller 16; lower is stolen first.
| unsigned char Channel::mBusMode |
Dry and reverb mix, controller 93.
| unsigned short Channel::mBus |
Preferred core, controller 94.
| unsigned int Channel::mDetune |
Nonzero to add vibrato, controller 18.
| unsigned int Channel::mStereo |
Nonzero for hard-panned pairs, controller 19.
| unsigned int Channel::mMonophonic |
Nonzero to silence before a note, controller 13.
| unsigned char Channel::mControllerEnable[kNumControllerEnables] |
Live-update switches.