Hi all,
I am not able to get MIDI controllers to work. I’m on Win11 and I have three devices connected (a keyboard and two controllers). All three are working properly according to MIDI-OX. Both controllers are configured with a knob set to use CC 11, verified in MIDI-OX.
Here’s a simple test program based on examples in the manual. When I run it, the instrument runs when I press a key, and I’m getting note and velocity data. But kamp never changes. What am I missing? Result it the same whether or not I explicitly set -+rtmidi. See console output below the code.
-d -m7 -odac1 -+rtmidi=portmidi -Ma ; -d -m7 -odac1 -Ma sr=48000 ksmps=1 nchnls=2 0dbfs=1instr 1
imax = 1
imin = 0
ictlno = 11
; ipch pchmidi
icps cpsmidi
ivel veloc
prints(“icps=%f ivel=%f\n”, icps, ivel)
kamp midic7 ictlno, imin, imax
; ktrig changed2 kamp
; printks(“ktrig=%f kamp=%f\n”, 1, ktrig, kamp)
printk2 kamp
asig oscili kamp, icps, 1
outs asig, asig
endin
Excerpts from the console:
0: Focusrite USB MIDI (portmidi)
1: SHIK N32B V3 (portmidi)
2: TouchOSC Bridge (portmidi)
3: Launch Control (portmidi)
4: K-Board (portmidi)
PortMIDI: Activated input device 0: ‘Focusrite USB MIDI’ (MMSystem)
PortMIDI: Activated input device 1: ‘SHIK N32B V3’ (MMSystem)
PortMIDI: Activated input device 2: ‘TouchOSC Bridge’ (MMSystem)
PortMIDI: Activated input device 3: ‘Launch Control’ (MMSystem)
PortMIDI: Activated input device 4: ‘K-Board’ (MMSystem)
SECTION 1:
ftable 1:
rtevent: T 0.085 TT 0.085 M: 0.00000 0.00000
new MIDI alloc for instr 1:
icps=293.656485 ivel=40.000000
i1 1.00000
rtevent: T 12.885 TT 12.885 M: 1.00000 1.00000
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here