| 54 | } |
| 55 | |
| 56 | BPMDelay::BPMDelay(AudioContext & ac, float tempo) |
| 57 | : lab::DelayNode(ac, 8.0f) |
| 58 | , tempo(tempo) |
| 59 | { |
| 60 | times = { |
| 61 | 1.f / 8.f, |
| 62 | (1.f / 4.f) * 2.f / 3.f, |
| 63 | (1.f / 8.f) * 3.f / 2.f, |
| 64 | 1.f / 4.f, |
| 65 | (1.f / 2.f) * 2.f / 3.f, |
| 66 | (1.f / 4.f) * 3.f / 2.f, |
| 67 | 1.f / 2.f, |
| 68 | 1.f * 2.f / 3.f, |
| 69 | (1.f / 2.f) * 3.f / 2.f, |
| 70 | 1.0f, |
| 71 | 2.f * 2.f / 3.f, |
| 72 | 1.f * 3.f / 2.f, |
| 73 | 2.f, |
| 74 | 3.f}; |
| 75 | |
| 76 | SetDelayIndex(TempoSync::TS_8); |
| 77 | } |
| 78 | |
| 79 | BPMDelay::~BPMDelay() |
| 80 | { |
nothing calls this directly
no outgoing calls
no test coverage detected