| 80 | } |
| 81 | |
| 82 | void Metronome::OnTimeEvent(double time) |
| 83 | { |
| 84 | int step = TheTransport->GetQuantized(time, mTransportListenerInfo); |
| 85 | if (step == 0) |
| 86 | { |
| 87 | mPhaseInc = GetPhaseInc(880); |
| 88 | mOsc.Start(gTime, 1, 0, 100, 0, 0); |
| 89 | } |
| 90 | else if (step == 2) |
| 91 | { |
| 92 | mPhaseInc = GetPhaseInc(480); |
| 93 | mOsc.Start(gTime, 1, 0, 70, 0, 0); |
| 94 | } |
| 95 | else |
| 96 | { |
| 97 | mPhaseInc = GetPhaseInc(440); |
| 98 | mOsc.Start(gTime, .8f, 0, 50, 0, 0); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | void Metronome::DrawModule() |
| 103 | { |
nothing calls this directly
no test coverage detected