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

Method BPMDelay

src/extended/BPMDelay.cpp:56–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56BPMDelay::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
79BPMDelay::~BPMDelay()
80{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected