Hi,
I am creating a midi device and I have a problem that I can´t solve.
I would like to be able to control the delay of each note. For example, when I press a MIDI key that triggers a MIDI chord I want to control the delay of each note through a “Slider”. I have tried several things with “event / event_i” but it does not work correctly. I would also like that when the MIDI key is released, all the chord notes receive the “note off” and turn off or, in case the delayed note has not started, it will not be activated.
I do not know if I have explained myself correctly. I’m quite blocked And I would really appreciate some help
Thanks!
<Cabbage> bounds(0, 0, 0, 0)
form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginid("midO")
keyboard bounds(8, 158, 381, 95)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-dm0 -n -+rtmidi=NULL -M0 -Q0 --midi-key=4 --midi-velocity=5
</CsOptions>
<CsInstruments>
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
midion 1,p4, p5
midion 1,p4+4, p5
midion 1,p4+7, p5
endin
</CsInstruments>
<CsScore>
f0 z
</CsScore>
</CsoundSynthesizer>