Hey! I am working on a chord synth, and want to implement reverb.
I have 4 oscillators working.
I’m using this code to mix the Oscillators:
float average = ((saw1 + saw2 + saw3 + saw4) /4);
output = flt.Process(average);
I’m attempting to add the ReverbSC example to the sketch but cant figure out how to change it from effecting the Daisy Audio inputs, to effecting the internal oscillators I have set up (or alternatively the master output).
ReverbSc verb;
void MyCallback(float **in, float **out, size_t size) {
for (size_t i = 0; i < size; i++) {
float out1, out2;
verb.Process(in[0][i], in[1][i], &out1, &out2);
out[0][i] = out1;
out[1][i] = out2;
}
}
void setup() {
float sample_rate;
// Initialize for Daisy pod at 48kHz
hw = DAISY.init(DAISY_SEED, AUDIO_SR_48K);
num_channels = hw.num_channels;
sample_rate = DAISY.get_samplerate();
verb.Init(sample_rate);
verb.SetFeedback(0.85f);
verb.SetLpFreq(18000.0f);
DAISY.begin(MyCallback);
}
Any advice would be greatly appreciated