MCPcopy Create free account
hub / github.com/cycfi/q / process

Method process

example/delay.cpp:33–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 {}
32
33 void process(out_channels const& out)
34 {
35 auto left = out[0];
36 auto right = out[1];
37 for (auto frame : out.frames)
38 {
39 // Get the next input sample
40 auto s = *_wav++;
41
42 // Mix the signal and the delayed signal
43 _y = s + _delay();
44
45 // Feed back the result to the delay
46 _delay.push(_y * _feedback);
47
48 // Output
49 left[frame] = s;
50 right[frame] = _y;
51 }
52 }
53
54 float* _wav;
55 q::delay _delay;

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected