void PianoScene::keyOn(const int note) { if (m_keys.contains(note)) keyOn(m_keys.value(note)); else triggerNoteOn(note, m_velocity); }
void PianoScene::keyOn(const int note) { if (note >=0 && note < m_keys.size()) keyOn(m_keys[note]); else triggerNoteOn(note, m_velocity); }
void PianoScene::keyOn( PianoKey* key, qreal pressure ) { int vel = m_velocity * pressure; triggerNoteOn(key->getNote(), vel); showKeyOn(key, vel); }
void PianoScene::keyOn( PianoKey* key ) { triggerNoteOn(key->getNote(), m_velocity); showKeyOn(key, m_velocity); }