[Cs-dev] Implementing MIDI handling in host
Date | 2013-05-11 11:15 |
From | Henrik Andersson |
Subject | [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
I'm trying to get MIDI handling into my host, im setting the following midi callbacks below
just as CsoundVST does but it never get fired, what more is needed to enable this ? csoundSetExternalMidiOpenDeviceCallback() csoundSetExternalMidiReadCallback() Regards, Henrik |
Date | 2013-05-11 12:24 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Have you added -M0 and -+rtmidi=null to your options? On 11 May 2013, at 11:15, Henrik Andersson wrote: > I'm trying to get MIDI handling into my host, im setting the following midi callbacks below > just as CsoundVST does but it never get fired, what more is needed to enable this ? > > csoundSetExternalMidiOpenDeviceCallback() > csoundSetExternalMidiReadCallback() > > Regards, > > Henrik > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may_______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-11 16:19 |
From | Henrik Andersson |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
-+rtmidi=null was the missing piece, i had it before but removed it when trying csoundSetMIDIModule(cs, NULL)... now, there is only getting the audio to work, with csound5 i used the same approach as in csladspa,
get Spout at init and read samples in process(), however with csound6 this spout seems to return 0.0 might be related to the disable of rt audio ? What is needed to read spout ?
2013/5/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie> Have you added -M0 and -+rtmidi=null to your options? |
Date | 2013-05-11 16:30 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
It should work; disabling the RT audio only disables the IO modules. Rory's program picks audio from spout too (I think) so if there was a problem with csound 6, then he would have found it too. Victor On 11 May 2013, at 16:19, Henrik Andersson wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-05-11 16:59 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
I did have some problems starting out, but everything woks fine now. Check the archives, there is something there about how I was losing audio when running with MIDI. On 11 May 2013 16:30, Victor Lazzarini |
Date | 2013-05-11 17:17 |
From | Henrik Andersson |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
Rory, related to your csound6 switch or is it older than that ? 2013/5/11 Rory Walsh <rorywalsh@ear.ie> I did have some problems starting out, but everything woks fine now. |
Date | 2013-05-11 17:23 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
I think it was actually also a problem with Csound5? It had something to do with the MIDI callback. But my problem was that I could perform an MIDI instrument, but then if I recompiled it the MIDI was lost. In the end I think I just had to make sure I called csoundPreCompile(). On 11 May 2013 17:17, Henrik Andersson |
Date | 2013-05-12 17:07 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
Maybe rtmidi can be set to null and a device selected automatically when a callback is set. It doesn't make a lot of sense to use it another way. Cheers, On May 11, 2013 8:20 AM, "Henrik Andersson" <henrik.4e@gmail.com> wrote:
|
Date | 2013-05-12 17:13 |
From | Henrik Andersson |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
Thanks Anders, didnt work as it did with csoundSetRTAudioModule().
2013/5/12 Andres Cabrera <mantaraya36@gmail.com>
|
Date | 2013-05-13 04:14 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Implementing MIDI handling in host |
Attachments | None None |
But what I mean is that when you set the MIDI callback you will always want to set rtmidi to null and -M0, so why not have the Csound API do that for you? Unfortunately not my area of knowledge in the Csound internals... Cheers,Andrés On Sun, May 12, 2013 at 9:13 AM, Henrik Andersson <henrik.4e@gmail.com> wrote:
|