I’m having an issue with audio quality in Cabbage3, every time I run the file the console returns “ksmps = 10” no matter what I declare ksmps as in Csound. I wonder if it has something to do with kr = sr / 10? Does JUCE impose its own configuration before csound instruments are run?
In the two files attached, the code is identical apart from the UI (one for Cabbage2, one for Cabbage3) but the difference in audio is night and day. Cabbage2 is perfect/clean, in Cabbage3 there is a strong resonance frequency above the input pitch which scales with amplitude, making it the most prominent frequency. It seems the pvscaling is working fine but something is off with the audio buffer/processing.
Also no matter what I change k-rate or ksmps to, I get “kr = 4410, ksmps = 10” in the console. Also having issues with 0dBFS = 1 vs 32768.
In cabbage2, the console IDE returns:
sr = 44100.0, kr = 344.531, ksmps = 128
0dBFS level = 1.0, A4 tuning = 440.0
audio buffered in 1024 sample-frame blocks
In Cabbage3 the VSCode console returns:
sr = 44100.0,
kr = 4410.000,
ksmps = 10
0dBFS level = 32768.0,
A4 tuning = 440.0
audio buffered in 128 sample-frame blocks
ksmpsbug-cabbage3.csd (592 Bytes)
ksmpsbug-cabbage2.csd (625 Bytes)

