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

Method PingPongDelayNode

src/extended/PingPongDelayNode.cpp:20–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace lab
19{
20PingPongDelayNode::PingPongDelayNode(AudioContext & ac, float tempo)
21{
22 input = std::make_shared<lab::GainNode>(ac);
23 output = std::make_shared<lab::GainNode>(ac);
24
25 leftDelay = std::make_shared<lab::BPMDelay>(ac, tempo);
26 rightDelay = std::make_shared<lab::BPMDelay>(ac, tempo);
27
28 splitterGain = std::make_shared<lab::GainNode>(ac);
29 wetGain = std::make_shared<lab::GainNode>(ac);
30 feedbackGain = std::make_shared<lab::GainNode>(ac);
31
32 merger = std::make_shared<lab::ChannelMergerNode>(ac, 2);
33 splitter = std::make_shared<lab::ChannelSplitterNode>(ac, 2);
34
35 SetDelayIndex(TempoSync::TS_8);
36 SetFeedback(0.5f);
37 SetLevel(1.0f);
38}
39
40void PingPongDelayNode::SetTempo(float t)
41{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected