void PianoScene::showNoteOn( const int note, int vel ) { int n = note - m_baseOctave*12 - m_transpose; if ((note >= m_minNote) && (note <= m_maxNote) && (n >= 0) && (n < m_keys.size())) showKeyOn(m_keys[n], vel); }
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); }
void PianoScene::showNoteOn( const int note, int vel ) { int n = note - m_baseOctave*12 - m_transpose; if ((note >= m_minNote) && (note <= m_maxNote) && m_keys.contains(n)) showKeyOn(m_keys.value(n), vel); }