From 26c3ee4cb640e316258981cc00690614cdf36cb1 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 3 Aug 2025 17:04:57 +0200 Subject: [PATCH] - fixed problems - updated .gitignore --- .gitignore | 4 +++- src/plug/JaySynth.h | 1 + src/plug/JaySynthVoice.h | 1 + src/plug/MidiCC_PopUp.cpp | 2 +- src/plug/MidiCC_PopUp.h | 4 ++-- src/plug/VelKey_PopUp.h | 4 +++- src/synth/noise.c | 7 +------ src/synth/sine.c | 2 -- 8 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 9ef9604..d9123a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ build - +.cache +c_cpp_properties.json +compile_commands.json diff --git a/src/plug/JaySynth.h b/src/plug/JaySynth.h index 3809f8d..82acca5 100644 --- a/src/plug/JaySynth.h +++ b/src/plug/JaySynth.h @@ -15,6 +15,7 @@ #include #include "JaySynthVoice.h" #include "JaySynthMonophonicMGR.h" +#include "JaySynthMidiCC.h" #define GET_NUM_VOICES max_num_voices diff --git a/src/plug/JaySynthVoice.h b/src/plug/JaySynthVoice.h index 72c4fad..201b599 100644 --- a/src/plug/JaySynthVoice.h +++ b/src/plug/JaySynthVoice.h @@ -11,6 +11,7 @@ #include #include +#include class JaySynthVoice { diff --git a/src/plug/MidiCC_PopUp.cpp b/src/plug/MidiCC_PopUp.cpp index ede9007..4ff32af 100644 --- a/src/plug/MidiCC_PopUp.cpp +++ b/src/plug/MidiCC_PopUp.cpp @@ -400,7 +400,7 @@ void MidiCC_PopUp::sliderValueChanged (Slider* sliderThatWasMoved) { slider_test->setTooltip (String(toParam(pMidiCC->getParam(pMidiCC_container), (synth_float_t)slider_test->getValue()))); } - else + else { if (lastControlValue == 0) slider_test->setTooltip (L"0.0"); diff --git a/src/plug/MidiCC_PopUp.h b/src/plug/MidiCC_PopUp.h index 494d0c8..acd85ed 100644 --- a/src/plug/MidiCC_PopUp.h +++ b/src/plug/MidiCC_PopUp.h @@ -24,8 +24,8 @@ //[Headers] -- You can add your own extra header files here -- #include -#include "PluginProcessor.h" -//#include "juce.h" +#include "JaySynthMidiCC.h" +#include "JaySynth.h" class MidiCC_PopUp_Listener { diff --git a/src/plug/VelKey_PopUp.h b/src/plug/VelKey_PopUp.h index e327d0e..ae27628 100644 --- a/src/plug/VelKey_PopUp.h +++ b/src/plug/VelKey_PopUp.h @@ -25,7 +25,9 @@ //[Headers] -- You can add your own extra header files here -- #include #include -#include "PluginProcessor.h" +#include "JaySynth.h" +#include "JaySynthMidiCC.h" + class VelKey_PopUp_Listener { public: diff --git a/src/synth/noise.c b/src/synth/noise.c index 0796a81..7f2bb94 100644 --- a/src/synth/noise.c +++ b/src/synth/noise.c @@ -1,12 +1,7 @@ // -------------------------------------------------------------- // -------------------------------------------------------------- -#include -#include -#include #include - -#include "synth_defs.h" #include "noise.h" // -------------------------------------------------------------- @@ -31,7 +26,7 @@ double ran0(long *idum) *idum ^= PM_MASK; // XORing with MASKallows use of zero and other k=(*idum)/PM_IQ; // simple bit patterns for idum. *idum=PM_IA*(*idum-k*PM_IQ)-PM_IR *k; // Compute idum=(IA*idum) % IM without over- - // flows by Schrage’s method. + // flows by Schrage�s method. if (*idum < 0) *idum += PM_IM; diff --git a/src/synth/sine.c b/src/synth/sine.c index e6861a1..e861f93 100644 --- a/src/synth/sine.c +++ b/src/synth/sine.c @@ -1,9 +1,7 @@ // -------------------------------------------------------------- // -------------------------------------------------------------- -#include #include -#include #include #include "synth_defs.h"