| 44 | float Key::VelocityFactor() const { return mVelocity / 127.f; } |
| 45 | |
| 46 | float Key::CalcAttackDecayFactor(uint32_t delta_ms) const { |
| 47 | bool dampened_key = (mIdx < kFirstNoteNoDamp); |
| 48 | float active_lights_factor = ::CalcDecayFactor( |
| 49 | mSustainPedalOn, |
| 50 | mOn, |
| 51 | mIdx, |
| 52 | VelocityFactor(), |
| 53 | dampened_key, |
| 54 | delta_ms); |
| 55 | return active_lights_factor; |
| 56 | } |
| 57 | |
| 58 | float Key::AttackRemapFactor(uint32_t now_ms) { |
| 59 | if (mOn) { |
nothing calls this directly
no test coverage detected