diff --git a/Makefile b/Makefile index 66df196..ded72c1 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SLUG = KoralfxVCV # Must follow the format in the Versioning section of https://vcvrack.com/manual/PluginDevelopmentTutorial.html -VERSION = 0.5.0 +VERSION = 0.5.1 # FLAGS will be passed to both the C and C++ compiler FLAGS += diff --git a/src/Mixovnik.cpp b/src/Mixovnik.cpp index 184b235..f22f761 100644 --- a/src/Mixovnik.cpp +++ b/src/Mixovnik.cpp @@ -76,6 +76,11 @@ void Mixovnik::step() { //Constant-power panning float KNOB_PAN_POS = params[PAN_PARAM + i].value + (inputs[STRIPE_CV_PAN_INPUT + i].value / 5); + + //Anti invert phase + if (KNOB_PAN_POS < -1) KNOB_PAN_POS = -1; + if (KNOB_PAN_POS > 1) KNOB_PAN_POS = 1; + double angle = KNOB_PAN_POS * PI_4; float GAIN_SIGNAL_L = (float) (SQRT2_2 * (cos(angle) - sin(angle))); float GAIN_SIGNAL_R = (float) (SQRT2_2 * (cos(angle) + sin(angle)));