Csound Csound-dev Csound-tekno Search About

[Cs-dev] Implementing MIDI handling in host

Date2013-05-11 11:15
FromHenrik Andersson
Subject[Cs-dev] Implementing MIDI handling in host
AttachmentsNone  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

Date2013-05-11 12:24
FromVictor Lazzarini
SubjectRe: [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

Date2013-05-11 16:19
FromHenrik Andersson
SubjectRe: [Cs-dev] Implementing MIDI handling in host
AttachmentsNone  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?
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
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-05-11 16:30
FromVictor Lazzarini
SubjectRe: [Cs-dev] Implementing MIDI handling in host
AttachmentsNone  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:

-+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?
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
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
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




Date2013-05-11 16:59
FromRory Walsh
SubjectRe: [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  wrote:
> 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:
>
> -+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 
>>
>> 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
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
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

Date2013-05-11 17:17
FromHenrik Andersson
SubjectRe: [Cs-dev] Implementing MIDI handling in host
AttachmentsNone  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.
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 <Victor.Lazzarini@nuim.ie> wrote:
> 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:
>
> -+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?
>> 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
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
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


Date2013-05-11 17:23
FromRory Walsh
SubjectRe: [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  wrote:
>
> Rory, related to your csound6 switch or is it older than that ?
>
>
>
> 2013/5/11 Rory Walsh 
>>
>> 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  wrote:
>> > 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:
>> >
>> > -+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 
>> >>
>> >> 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
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > 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
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>
>
>
> ------------------------------------------------------------------------------
> 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
>

------------------------------------------------------------------------------
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

Date2013-05-12 17:07
FromAndres Cabrera
SubjectRe: [Cs-dev] Implementing MIDI handling in host
AttachmentsNone  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,
Andres

On May 11, 2013 8:20 AM, "Henrik Andersson" <henrik.4e@gmail.com> wrote:
-+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?
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
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
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


Date2013-05-12 17:13
FromHenrik Andersson
SubjectRe: [Cs-dev] Implementing MIDI handling in host
AttachmentsNone  None  
Thanks Anders,

This is not an issue anymore. -+rtmidi=null was required in argv, using csoundSetMIDIModule() and pass "null" 
didnt work as it did with csoundSetRTAudioModule().


2013/5/12 Andres Cabrera <mantaraya36@gmail.com>

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,
Andres

On May 11, 2013 8:20 AM, "Henrik Andersson" <henrik.4e@gmail.com> wrote:
-+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?
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
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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



Date2013-05-13 04:14
FromAndres Cabrera
SubjectRe: [Cs-dev] Implementing MIDI handling in host
AttachmentsNone  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:
Thanks Anders,

This is not an issue anymore. -+rtmidi=null was required in argv, using csoundSetMIDIModule() and pass "null" 
didnt work as it did with csoundSetRTAudioModule().


2013/5/12 Andres Cabrera <mantaraya36@gmail.com>

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,
Andres

On May 11, 2013 8:20 AM, "Henrik Andersson" <henrik.4e@gmail.com> wrote:
-+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?
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
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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