Can you try this one? It’s rewritten slightly using a different approach and opcodes:
<Cabbage> bounds(0, 0, 0, 0)
form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginid("midO")
keyboard bounds(8, 158, 381, 95)
rslider bounds(74, 28, 60, 60) range(0, 1, 0, 1, 0.001),channel("DelNoteOne")
rslider bounds(148, 28, 60, 60) range(0, 1, 0, 1, 0.001),channel("DelNoteTwo")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-dm0 -n -+rtmidi=NULL -M0 -Q0 --midi-key=4 --midi-velocity=5
</CsOptions>
<CsInstruments>
ksmps = 32
nchnls = 2
0dbfs = 1
giChan = 0
instr 1 ;Triggered by MIDI notes on channel 1
ifund notnum
ivel veloc
iDelayTimeOne chnget "DelNoteOne"
iDelayTimeTwo chnget "DelNoteTwo"
kTrig init 1
schedkwhen delayk(kTrig,iDelayTimeOne), 0, 0, 200, 0, 1, giChan, ifund, ivel, 143
schedkwhen delayk(kTrig,iDelayTimeTwo), 0, 0, 200, 0, 1, giChan, ifund+10, ivel, 143
kTrig = 0
schedkwhen release:k(), 0, 0, 200, 0, 1, giChan, ifund, 0, 127
schedkwhen release:k(), 0, 0, 200, 0, 1, giChan, ifund+10, 0, 127
giChan wrap giChan + 1, 1, 17
endin
instr 200
midiout p7+p4, p4, p5, p6
turnoff
endin
</CsInstruments>
<CsScore>
f0 z
</CsScore>
</CsoundSynthesizer>