Browse Source

Fix VCO hard sync sign error.

tags/v1.2.1
Andrew Belt 4 years ago
parent
commit
db0c7a63e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/VCO.cpp

+ 1
- 1
src/VCO.cpp View File

@@ -131,7 +131,7 @@ struct VoltageControlledOscillator {
syncDirection = simd::ifelse(sync, -syncDirection, syncDirection);
}
else {
T newPhase = simd::ifelse(sync, syncCrossing * deltaPhase, phase);
T newPhase = simd::ifelse(sync, (1.f - syncCrossing) * deltaPhase, phase);
// Insert minBLEP for sync
for (int i = 0; i < channels; i++) {
if (syncMask & (1 << i)) {


Loading…
Cancel
Save