42 using Keys = std::vector<Key>;
Keys mKeys
Vector holding the keys.
Key & operator[](size_t i)
Class describing the piano keyboard, holding a collection of keys.
void clearOverpulls()
Set all overpull markers to zero.
void changeKeyboardConfiguration(int numberOfKeys, int keyNumberOfA)
Change keyboard configuration.
const Key & at(size_t i) const
void resize(size_t newSize)
Class describing a single piano key.
const Key * getKeyPtr(int i) const
Get pointer to a key with a given number, returning nullptr if the number is out of range (read-only ...
int getNumberOfBassKeys() const
KeyColor
The KeyColor enum.
void clearComputedPitches()
Set all computed pitches to zero.
void clearTunedPitches()
Set all tuned pitches to zero.
std::string getNoteName(int keynumber) const
Get the name of the key as a string.
void clearAllKeys()
Clear all keys completely.
Keyboard(size_t initialSize)
Keyboard constructor.
int getKeyNumberOfA4() const
const Key & operator[](size_t i) const
void setNumberOfBassKeys(int keys)
int & getNumberOfBassKeys()
int getNumberOfKeys() const
piano::KeyColor getKeyColor(int keynumber) const
Get the color of the key (black / white)
int mKeyNumberOfA4
Index of the key A4 (440Hz)
int mNumberOfBassKeys
Number of keys on bass bridge.