SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Collection of state values that pertains to a specific MIDI channel. More...
#include <Channel.hpp>
Public Types | |
using | ContinuousControllerValues = std::array< short, CCMax - CCMin+1 > |
using | KeyPressureValues = std::array< short, Note::Max+1 > |
Public Member Functions | |
Channel () | |
Construct new channel. More... | |
void | setKeyPressure (short key, short value) |
Set the pressure for a given key. More... | |
int | keyPressure (short key) const |
Get the pressure for a given key. More... | |
void | setChannelPressure (short value) |
Set the channel pressure. More... | |
int | channelPressure () const |
void | setPitchWheelValue (short value) |
Set the pitch wheel value. More... | |
int | pitchWheelValue () const |
void | setPitchWheelSensitivity (short value) |
Set the pitch wheel sensitivity value. More... | |
int | pitchWheelSensitivity () const |
void | setContinuousControllerValue (short id, short value) |
Set a continuous controller value. More... | |
int | continuousControllerValue (short id) const |
Get a continuous controller value. More... | |
Static Public Attributes | |
constexpr static short | CCMin = 0 |
constexpr static short | CCMax = 127 |
Collection of state values that pertains to a specific MIDI channel.
using SF2::MIDI::Channel::ContinuousControllerValues = std::array<short, CCMax - CCMin + 1> |
using SF2::MIDI::Channel::KeyPressureValues = std::array<short, Note::Max + 1> |
|
inline |
Construct new channel.
|
inline |
|
inline |
|
inline |
Get the pressure for a given key.
key | the key to get |
References SF2::MIDI::Note::Max.
|
inline |
|
inline |
|
inline |
Set the channel pressure.
value | the pressure value to record |
|
inline |
|
inline |
Set the pressure for a given key.
key | the key to set |
value | the pressure value to record |
References SF2::MIDI::Note::Max.
|
inline |
Set the pitch wheel sensitivity value.
value | the sensitivity value to record |
|
inline |
Set the pitch wheel value.
value | the pitch wheel value |
|
inlinestaticconstexpr |
Referenced by continuousControllerValue(), and setContinuousControllerValue().
|
inlinestaticconstexpr |
Referenced by continuousControllerValue(), and setContinuousControllerValue().