| 69 | { |
| 70 | public: |
| 71 | ExamplePluginMetronome() |
| 72 | : Plugin(4, 0, 0), // 4 parameters, 0 programs, 0 states |
| 73 | sampleRate(getSampleRate()), |
| 74 | counter(0), |
| 75 | wasPlaying(false), |
| 76 | phase(0.0f), |
| 77 | envelope(1.0f), |
| 78 | decay(0.0f), |
| 79 | gain(0.5f), |
| 80 | semitone(72), |
| 81 | cent(0), |
| 82 | decayTime(0.2f) |
| 83 | { |
| 84 | sampleRateChanged(sampleRate); |
| 85 | } |
| 86 | |
| 87 | protected: |
| 88 | /* -------------------------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected