MCPcopy Create free account
hub / github.com/LabSound/LabSound / SetDelayIndex

Method SetDelayIndex

src/extended/BPMDelay.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void 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}

Callers 1

playMethod · 0.45

Calls 1

TempoSyncToIndexFunction · 0.85

Tested by

no test coverage detected