#include <Piano.h>
◆ KeyType
◆ Piano()
◆ handleKeyPress()
| void lmms::Piano::handleKeyPress |
( |
int | key, |
|
|
int | midiVelocity = -1 ) |
Handle a note being pressed on our keyboard display.
- Parameters
-
◆ handleKeyRelease()
| void lmms::Piano::handleKeyRelease |
( |
int | key | ) |
|
Handle a note being released on our keyboard display.
- Parameters
-
| key | the key being releassed |
◆ instrumentTrack()
◆ isBlackKey()
| bool lmms::Piano::isBlackKey |
( |
int | key | ) |
|
|
static |
◆ isKeyPressed()
| bool lmms::Piano::isKeyPressed |
( |
int | key | ) |
const |
|
inline |
◆ isValidKey()
| bool lmms::Piano::isValidKey |
( |
int | key | ) |
|
|
inlinestaticprivate |
◆ isWhiteKey()
| bool lmms::Piano::isWhiteKey |
( |
int | key | ) |
|
|
static |
◆ midiEventProcessor()
◆ setKeyState()
| void lmms::Piano::setKeyState |
( |
int | key, |
|
|
bool | state ) |
Turn a key on or off.
- Parameters
-
| key | the key number to change |
| State | the state to set the key to |
◆ BlackKeysPerOctave
| const unsigned int lmms::Piano::BlackKeysPerOctave = 5 |
|
static |
◆ m_instrumentTrack
◆ m_midiEvProc
◆ m_pressedKeys
| std::array<bool, NumKeys> lmms::Piano::m_pressedKeys = {} |
|
private |
◆ NumBlackKeys
| const unsigned int lmms::Piano::NumBlackKeys = 53 |
|
static |
◆ NumWhiteKeys
| const unsigned int lmms::Piano::NumWhiteKeys = 75 |
|
static |
◆ WhiteKeysPerOctave
| const unsigned int lmms::Piano::WhiteKeysPerOctave = 7 |
|
static |
The documentation for this class was generated from the following files:
- /home/runner/work/lmms-fork/lmms-fork/include/Piano.h
- /home/runner/work/lmms-fork/lmms-fork/src/core/Piano.cpp