Hello, I am currently following Rory’s live-style sampler and have discovered a strange bug. I ran into an error as I had an instrument being reinstated, however when trying to save to run the code after I deleted the instrument, cabbage immediately crashes. I have provided a video to show the issue.
here is the code.
<Cabbage> bounds(0, 0, 0, 0)
form caption("Untitled") size(400, 300), guiMode("queue"), pluginId("def1")
keyboard bounds(0, 200, 400, 100)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
instr 99
endin
instr 1
endin
;instrument will be triggered by keyboard widget
instr 1
SFile, kFileChanged cabbageGet "LAST_FILE_DROPPED"
printf SFile, kFileChanged
endin
</CsInstruments>
<CsScore>
i1 0 z
f0 z
</CsScore>
</CsoundSynthesizer>
Upon deleting the empty instance of instr1 and pressing cmd+s, the crash occurs.
I believe I am running on the latest version of cabbage
Hope this helps!