| 18 | namespace lab |
| 19 | { |
| 20 | PingPongDelayNode::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 | |
| 40 | void PingPongDelayNode::SetTempo(float t) |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected