| 81 | } |
| 82 | |
| 83 | void BPMDelay::SetDelayIndex(TempoSync value) |
| 84 | { |
| 85 | if (value >= TempoSync::TS_32 && value <= TempoSync::TS_2D) |
| 86 | { |
| 87 | noteDivision = TempoSyncToIndex(value); |
| 88 | recomputeDelay(); |
| 89 | } |
| 90 | else |
| 91 | throw std::invalid_argument("Delay index out of bounds"); |
| 92 | } |
| 93 | } |
no test coverage detected