[Csnd] Midi CC number

Hi!
Just a quick question - does Csound have an opcode that can print what midi controller number is being changed?
I tried midiin and it reports midi channel and midi data, but I can’t see how to find what midi cc number is related to the midi data change.
I was hoping to do something akin to midi learn…

Best regards,
Anders

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

I would think that if you check for the status byte and the print the first data byte

kstatus, kchan, kdata1, kdata2 midiin
if kstatus == 176 then
printk 0, kdata1
endif

that should do what you want.

That seems to work fine, thank you!

Regards,
Anders