MCPcopy Create free account
hub / github.com/Signalsmith-Audio/reverb-example-code / configure

Method configure

reverb-example-code.h:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 std::array<bool, channels> flipPolarity;
123
124 void configure(double sampleRate) {
125 double delaySamplesRange = delayMsRange*0.001*sampleRate;
126 for (int c = 0; c < channels; ++c) {
127 double rangeLow = delaySamplesRange*c/channels;
128 double rangeHigh = delaySamplesRange*(c + 1)/channels;
129 delaySamples[c] = randomInRange(rangeLow, rangeHigh);
130 delays[c].resize(delaySamples[c] + 1);
131 delays[c].reset();
132 flipPolarity[c] = rand()%2;
133 }
134 }
135
136 Array process(Array input) {
137 // Delay

Callers

nothing calls this directly

Calls 1

randomInRangeFunction · 0.85

Tested by

no test coverage detected