- Edited
giuliomoro I will try the latest version, and solder up my Trill Crafts for those tests too!
Here is a working MIDI .csd, in the CsOptions section, you will see command lines for:
previous Bela 6.15 (with no multiple MIDI support, but excellent MIDI)
Bela 6.15 v2 (with multiple MIDI support, working!... but many Mode switches and Dropped blocks)
the command line settings I use on the Mac, to run Csound with multiple MIDI devices in the terminal
As you will see from the .csd below, it is reading MIDI CCs 1-9 (typically from my nanoControl)
<CsoundSynthesizer>
<CsOptions>
;-Mhw:1,0,0 -+rtmidi=NULL --daemon -dm0 ; Bela 6.15 v1
;-Mhw:1,0,0 --daemon -dm0 ; Bela 6.15 v2
-Mhw:1,0,0 -Ma --daemon -dm0 ; Bela 6.15 v2 (multiple MIDI devices)
;csound -+rtaudio=pa_cb -iadc1 -odac1 -+rtmidi=portmidi -Ma --env:CSNOSTOP=yes ; Mac commandline
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 16
nchnls = 2
0dbfs = 1
gaRvb init 0
ctrlinit 1, 1,100, 2,0, 3,0, 4,64, 5,1, 6,10, 7,100, 8,10, 9,76
instr 1
icps cpsmidi
iamp ampmidi .5
kamp midic7 1, 0,1
kamp port kamp,.1
kcar midic7 2, 1,4
kcar port kcar,.01
kmod midic7 3, 1,10
kmod port kmod,.01
kindx midic7 4, 1,13
kindx port kindx,.01
iatk midic7 5, .001,1
idec midic7 6, .01,1
isus midic7 7, 0,1
irel midic7 8, .01,2
kWet midic7 9, 0,1
asig foscil kamp*iamp, icps, kcar, 1+(kmod), kindx, 1
kmgate mxadsr iatk, idec, isus, irel
aDry = asig * kmgate
vincr gaRvb, aDry * kWet
outs aDry, aDry
endin
instr 99
denorm gaRvb
awetL,awetR freeverb gaRvb, gaRvb, .9, .5
outs awetL, awetR
clear gaRvb
endin
</CsInstruments>
<CsScore>
f1 0 16384 10 1
i 1 0 z
i 99 0 z
</CsScore>
</CsoundSynthesizer>