From dfb560abf12304f7ef6027875444b93909a3f8be Mon Sep 17 00:00:00 2001 From: Greg Recco <127459177+gregrecco67@users.noreply.github.com> Date: Wed, 3 Apr 2024 21:44:27 -0400 Subject: [PATCH] version bump + more osc correction --- CMakeLists.txt | 2 +- Source/QuadOsc.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed220b5..7de927d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ endforeach() juce_add_plugin (${PROJECT_NAME} PRODUCT_NAME "Audible Planets" - VERSION 1.0.10 + VERSION 1.0.11 COMPANY_NAME "Void-Star" COMPANY_WEBSITE "https://void-star.com/" FORMATS "VST3" "AU" "Standalone" diff --git a/Source/QuadOsc.h b/Source/QuadOsc.h index bb3e7a4..644eb01 100644 --- a/Source/QuadOsc.h +++ b/Source/QuadOsc.h @@ -162,10 +162,10 @@ class QuadOscillator positions[i] = { 0.f, 0.f, 0.f, 0.f }; if (params.wave == Wavetype::sine) { for (int v = 0; v < 4; v++) { - positions[i].xL += (gainsL[v] * sineValueForPhaseAndTones(phases[v] + params.phaseShift + 0.5f * (float)pi, params.tones)) * .25f; - positions[i].yL += (gainsL[v] * sineValueForPhaseAndTones(phases[v] + params.phaseShift, params.tones)) * .25f; - positions[i].xR += (gainsR[v] * sineValueForPhaseAndTones(phases[v] + params.phaseShift + 0.5f * (float)pi, params.tones)) * .25f; - positions[i].yR += (gainsR[v] * sineValueForPhaseAndTones(phases[v] + params.phaseShift, params.tones)) * .25f; + positions[i].xL += (gainsL[v] * sineValueForPhaseAndTones(phases[v] + (params.phaseShift + 0.5f) * (float)pi, params.tones)) * .25f; + positions[i].yL += (gainsL[v] * sineValueForPhaseAndTones(phases[v] + params.phaseShift * (float)pi, params.tones)) * .25f; + positions[i].xR += (gainsR[v] * sineValueForPhaseAndTones(phases[v] + (params.phaseShift + 0.5f) * (float)pi, params.tones)) * .25f; + positions[i].yR += (gainsR[v] * sineValueForPhaseAndTones(phases[v] + params.phaseShift * (float)pi, params.tones)) * .25f; phases[v] += phaseIncs[v]; if (phases[v] > pi) { phases[v] -= 2.f * (float)pi; } }