Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] PortMIDI cleanup

Date2005-11-03 19:12
FromVictor Lazzarini
SubjectRe: [Cs-dev] PortMIDI cleanup
Would you consider it fixed then?

Victor

>
> On Nov 3, 2005, at 8:46 AM, Istvan Varga wrote:
>
> > Note that there are also native drivers for ALSA and
> > Windows MME (but not OS X yet), and these are expected
> > to work correctly when restarted or run in multiple
> instances.
>
> CoreMIDI also supports restarting and running in multiple
> instances; I  would imagine this is the OS X equivalent
> for the native ALSA and  Windows MME drivers.
>
> In this situation it is a shame ma++'s MacCsound is not
> open source, as  I am fairly certain that it implements a
> CoreMIDI virtual device driver  and of course all of it's
> OS specific inter-application bussing  features. The main
> disadvantage however is that you cannot explicitly
> specify *which* device on your system to use (ie.
> MacCsound does not  implement an equivalent to -M), in
> favor of a preference pane from  another application which
> is also outputting data to the  inter-application bus.
> Thus, users are forced to get the
> NSApplicationServices.framework involved.
>
> In any event, I have tested the new cstclsh shell in OS X
> from a fresh  Nov 2 CVS build and it is possible to
> re-instantiate PortMIDI in  multiple instances without
> problems. I was also able to run the  attached example
> several times successively without incident.
>
> I used the following commandline:
>
> % csCompile -odac:1 -idevaudio:1 -d -+noninterleaved=1
> -+rtaudio=CoreAudio -M0
> /Users/daveakbari/Desktop/midiTest.csd
>
> with the following unified CSD example (just for testing):
>
> 
> 
> ;-odac:1 -idevaudio:1 -d -+noninterleaved=1
> -+rtaudio=CoreAudio -M0 
> 
>
> sr        =    44100
> kr        =    441
> ksmps    =    100
> nchnls    =    2
>
> /*--- ---*/
>
>         instr    1
>
> kstatus, kchan, kd1, kd2    midiin
>
>     printk2    kd1
>
>         endin
>
> /*--- ---*/
> 
> 
> i1    0    1000
>
> e
> 
>
> 
>
>
> -David
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo
> App Server. Download it for free - -and be entered to win
> a 42" plasma tv or your very own Sony(tm)PSP.  Click here
> to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-03 19:37
FromDavid Akbari
SubjectRe: [Cs-dev] PortMIDI cleanup
On Nov 3, 2005, at 2:12 PM, Victor Lazzarini wrote:

> Would you consider it fixed then?
>
> Victor

I certainly would, as now the cstclsh aspect of the language makes 
Csound seem comparable to something like ChucK. Only with the entire 
TCL and Wish libraries at the user's disposal!

IMHO, the addition of Pt_Stop() to a Csound performance makes Csound's 
realtime MIDI implementation improved!


-David
(now to learn about CoreMIDI to write a native driver....)



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net