Hi,
I tried to change default ksmps
in a .csd and it didn’t work. So I tried to load other .csd I had on my computer and changed ksmps
, and it worked for some of them. My goal is to set ksmps to 1024 in one of my project (I know it’s high but the latency declared is close to 20ms so I wanted to optimize the code for a lower CPU usage)
Here is an illustration of the issue below:
The code doesn’t make sense because I tried to add/remove some parts of the code to isolate the issue but I couldn’t find it. Does someone know what could happen?
Thank you!
.csd (ksmps doesn’t change):
<Cabbage>
form caption("Bug") pluginId("def1") size(840, 500), guiMode("queue"), colour(200,200,200)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 64
nchnls = 2
0dbfs = 1
instr 1
a1 inch 1
a2 inch 2
outs a1, a2
endin
</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z
i 1 0 [60 * 60 * 24 * 7]
</CsScore>
</CsoundSynthesizer>