Renamed octave() to octaveControl() making this filter a drop-in replacement for Teensy Audio's State Variable Filter.

pull/1/head
dronus 7 years ago
parent 4e904f5214
commit e5c592151d
  1. 4
      filter_moog_f32.h

@ -52,7 +52,7 @@ public:
frequency(1000); frequency(1000);
resonance(1); resonance(1);
drive(1); drive(1);
octave(1); octaveControl(1);
y_a = 0; y_a = 0;
y_b = 0; y_b = 0;
y_c = 0; y_c = 0;
@ -72,7 +72,7 @@ public:
else if (qi > 5.0) qi = 5.0; else if (qi > 5.0) qi = 5.0;
q=qi; q=qi;
} }
void octave(float n) { void octaveControl(float n) {
if (n < 0.0) n = 0.0; if (n < 0.0) n = 0.0;
else if (n > 6.9999) n = 6.9999; else if (n > 6.9999) n = 6.9999;
oct=n; oct=n;

Loading…
Cancel
Save