Browse Source

Fix interpolateLinear call

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
4b122d2bec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/VCO.cpp

+ 2
- 2
src/VCO.cpp View File

@@ -112,7 +112,7 @@ struct VoltageControlledOscillator {
sinBuffer[i] = sinf(2.f*M_PI * phase);
}
if (analog) {
triBuffer[i] = 1.25f * interp(triTable, phase * 2047.f);
triBuffer[i] = 1.25f * interpolateLinear(triTable, phase * 2047.f);
}
else {
if (phase < 0.25f)
@@ -123,7 +123,7 @@ struct VoltageControlledOscillator {
triBuffer[i] = -4.f + 4.f * phase;
}
if (analog) {
sawBuffer[i] = 1.66f * interp(sawTable, phase * 2047.f);
sawBuffer[i] = 1.66f * interpolateLinear(sawTable, phase * 2047.f);
}
else {
if (phase < 0.5f)


Loading…
Cancel
Save