Hi Rory,
Would you try this one? This is my actual working file and saving the preset still renders the combobox (sample selection) blank. On Cabbage public build 2.8.113
EDIT: here’s a much simpler example based on yours. Just put a .wav file in /samples and you will see… maybe?
<Cabbage>
form caption("Presets") size(370, 280), colour(58, 110, 182), pluginid("MPre")
keyboard bounds(10, 90, 345, 95)
rslider bounds(12, 8, 85, 79), channel("att"), range(0, 1, 0.01), text("Att.")
rslider bounds(98, 8, 85, 79), channel("dec"), range(0, 1, 0.4), text("Dec.")
rslider bounds(184, 8, 85, 79), channel("sus"), range(0, 1, 0.7), text("Sus.")
rslider bounds(270, 8, 85, 79), channel("rel"), range(0, 1, 0.8), text("Rel.")
combobox bounds(74, 190, 100, 25), populate("*.snaps")
filebutton bounds(12, 190, 60, 25), text("Save"), populate("*.snaps"), mode("snapshot")
combobox bounds(23, 210, 120, 20), populate("*.wav", "samples/"), colour("19,23,22,230"), channelType("string"), value("Abeille.wav"), channel("Sample"), fontColour(235,228,218)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5
</CsOptions>
<CsInstruments>
; Initialize the global variables.
;sr is set by the host
ksmps = 32
nchnls = 2
0dbfs = 1
;instrument will be triggered by keyboard widget
instr 1
printk2 chnget:k("att")
endin
</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
i1 0 z
</CsScore>
</CsoundSynthesizer>