[Csnd] Getting MIDI Values from Controller at i-Time

Hello everybody,

for a current project i need the MIDI CC Values from a Hardware controller at i-time.

i want to do something like this

iDx init 0
while (iDx < 127) do
  iCC = ctrl7(1, iDx, 0, 127)
  iArr[iDx] = iCC
  iDx += 1
od

First i wanted to use `ctrl7`, but this only works at k-Time. Is there a workaround for this? I can’t find a opcode for this purpose.

Philipp
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        GitHub · Where software is built
Discussions of bugs and features can be posted here

Not according to the manual,

https://csound.com/docs/manual/ctrl7.html

it does work on i-time

Prof. Victor Lazzarini
Maynooth University
Ireland

hello philipp -

i think what you want depends on the midi device, i had the same issue with my midi arturia. can you try it with another?

im not sure i understand what you want, but if its somehow write a default value to an array perhaps you can have it as saved file, and load it then write it into an array in i-rate. (thats what i did)

i hope that helps if not please explain more. but i guess the answer is not with opcodes.

parham