fixed windows build platform

This commit is contained in:
2026-01-22 22:59:28 -06:00
parent 1acbbce033
commit 6bdf9c0e1f
9 changed files with 38 additions and 66 deletions

View File

@@ -98,7 +98,7 @@ float Voice::process(float* params, bool& scopeTrigger) {
float osc3 = oscillators_[2].process(osc3NoteOffset + note_, getParam(ParamId::Osc3PitchOffset)/100.0f, temp);
// mix oscillators
float sampleOut = (osc1 + osc2*0.5f + osc3*0.25f) * gain;
float sampleOut = (osc1 + osc2*0.25f + osc3*0.125f) * gain;
// filter sample
float baseFreq = oscillators_[0].frequency();
@@ -106,8 +106,8 @@ float Voice::process(float* params, bool& scopeTrigger) {
float resonance = resonanceEnv * getParam(ParamId::FilterResonanceDepth) * velocityGain;
filter1_.setParams(Filter::Type::BiquadLowpass, cutoffFreq, resonance);
filter2_.setParams(Filter::Type::BiquadLowpass, cutoffFreq, resonance);
sampleOut = filter1_.biquadProcess(sampleOut);
sampleOut = filter2_.biquadProcess(sampleOut);
float filteredSample = filter1_.biquadProcess(sampleOut);
// sampleOut = filter2_.biquadProcess(sampleOut); // TODO: for some reason second filter is unstable only on windows 🤷
return sampleOut;
return filteredSample;
}

View File

@@ -3,6 +3,7 @@
#include <array>
#include <vector>
#include <cstdint>
#define SYNTH_WAVETABLE_SIZE 2048
#ifndef M_PI // I hate my stupid chungus life

View File

@@ -52,7 +52,10 @@ MainWindow::MainWindow(QWidget *parent) :
audio_->start();
// midi
#ifndef _WIN32
midi_.openPort(1); // TODO: error check
#endif
}
MainWindow::~MainWindow() {