Csound Csound-dev Csound-tekno Search About

how to use csound api midi functions

Date2017-03-14 04:16
FromForrest Curo
Subjecthow to use csound api midi functions
I've been bypassing csound's native midi routines, so my C program could directly get time & notes, then turn these into score strings sent to a csound thread.

What I find, doing this, is that I'm missing too many note-offs.

This wasn't a problem with direct midi -> csound messages. So it might be worthwhile to have csound catch midi signals, send the data from that for my C program to process, turn it into score lines & send these back via csoundReadScore().

?
I don't find the csound api documentation much use towards understanding how to do this. Examples of how to use the API midi functions in this way?

Forrest Curo
San Diego
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

Date2017-03-14 07:09
FromVictor Lazzarini
SubjectRe: how to use csound api midi functions
Examples of MIDI callbacks can be found in 
the sources directory InOut, e.g. pmidi.c.

Your program can set up these callbacks and dispatch MIDI data to Csound.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Mar 2017, at 04:16, Forrest Curo <treegestalt@GMAIL.COM> wrote:

I've been bypassing csound's native midi routines, so my C program could directly get time & notes, then turn these into score strings sent to a csound thread.

What I find, doing this, is that I'm missing too many note-offs.

This wasn't a problem with direct midi -> csound messages. So it might be worthwhile to have csound catch midi signals, send the data from that for my C program to process, turn it into score lines & send these back via csoundReadScore().

?
I don't find the csound api documentation much use towards understanding how to do this. Examples of how to use the API midi functions in this way?

Forrest Curo
San Diego
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

Date2017-03-14 13:30
FromForrest Curo
SubjectRe: how to use csound api midi functions

On Tue, Mar 14, 2017 at 12:09 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Examples of MIDI callbacks can be found inĀ 
the sources directory InOut, e.g. pmidi.c.

Your program can set up these callbacks and dispatch MIDI data to Csound.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Mar 2017, at 04:16, Forrest Curo <treegestalt@GMAIL.COM> wrote:

I've been bypassing csound's native midi routines, so my C program could directly get time & notes, then turn these into score strings sent to a csound thread.

What I find, doing this, is that I'm missing too many note-offs.

This wasn't a problem with direct midi -> csound messages. So it might be worthwhile to have csound catch midi signals, send the data from that for my C program to process, turn it into score lines & send these back via csoundReadScore().

?
I don't find the csound api documentation much use towards understanding how to do this. Examples of how to use the API midi functions in this way?

Forrest Curo
San Diego
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

Date2017-03-14 14:20
FromVictor Lazzarini
SubjectRe: how to use csound api midi functions
That is one of them. There is also code in pmidi.c rtalsa.c rtjack.c rtwinmm.c and ipmidi.c

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Mar 2017, at 13:31, Forrest Curo <treegestalt@GMAIL.COM> wrote:


On Tue, Mar 14, 2017 at 12:09 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Examples of MIDI callbacks can be found in 
the sources directory InOut, e.g. pmidi.c.

Your program can set up these callbacks and dispatch MIDI data to Csound.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Mar 2017, at 04:16, Forrest Curo <treegestalt@GMAIL.COM> wrote:

I've been bypassing csound's native midi routines, so my C program could directly get time & notes, then turn these into score strings sent to a csound thread.

What I find, doing this, is that I'm missing too many note-offs.

This wasn't a problem with direct midi -> csound messages. So it might be worthwhile to have csound catch midi signals, send the data from that for my C program to process, turn it into score lines & send these back via csoundReadScore().

?
I don't find the csound api documentation much use towards understanding how to do this. Examples of how to use the API midi functions in this way?

Forrest Curo
San Diego
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