Csound Csound-dev Csound-tekno Search About

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

Date2025-04-04 10:47
FromPhilipp Neumann <0000119f78f3a4f9-dmarc-request@LISTSERV.HEANET.IE>
Subject[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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-04-04 11:00
Fromvlz
SubjectRe: [Csnd] Getting MIDI Values from Controller at i-Time
Not according to the manual,


it does work on i-time

Prof. Victor Lazzarini
Maynooth University
Ireland

On 4 Apr 2025, at 10:47, Philipp Neumann <0000119f78f3a4f9-dmarc-request@listserv.heanet.ie> wrote:

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
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-04-04 11:35
FromParham Izadyar
SubjectRe: [Csnd] Getting MIDI Values from Controller at i-Time
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

On Fri, Apr 4, 2025, 1:30 PM vlz <viclazzarini@gmail.com> wrote:
Not according to the manual,


it does work on i-time

Prof. Victor Lazzarini
Maynooth University
Ireland

On 4 Apr 2025, at 10:47, Philipp Neumann <0000119f78f3a4f9-dmarc-request@listserv.heanet.ie> wrote:

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
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
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
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