It is simple and useful, I think that this evening it will be in git (before the freeze) otherwise, if I'll have other problems, it is deferred to the next week. tito On Fri, Aug 24, 2012 at 08:56:36AM +0100, Victor Lazzarini wrote: > Thanks for the suggestion. We'll look into it. > > Victor > On 24 Aug 2012, at 05:08, pj@pjb.com.au wrote: > > > Greetings, > > > > Csound's alsa midi support isn't very helpful... -+rtmidi=asla > > doesn't create an alsa client, and so doesn't show up with > > aconnect -oil and can't be connected to using aconnect > > or disconnected from using aconnect -d or aconnect -x or > > played to with aplaymidi -p or midikbd -o or midiedit or > > midifade -o or connected from more than one source, etc etc. > > > > I know csound can be run initially with a -M999 option, and > > its STERR parsed for lines /^\s*(\d+):\s+(.+)\s+\(ALSA/ > > , and then re-run with (one of) the desired numbers, but > > that's slow and messy. Csound can be started up connecting > > from some hardcoded number but that's very unportable. > > > > It would be more useful, and look less clunky, if csound could > > start a proper ALSA client. It's not much code; this example > > ( see: http://search.cpan.org/perldoc?MIDI::ALSA ) is in Perl: > > use MIDI::ALSA; > > MIDI::ALSA::client( "csound pid=$$", 1, 1, 0 ); > > foreach my $input (@Inputs) { > > MIDI::ALSA::connectfrom( 0, $input ) > > or warn(" warning: couldn't connect from $input\n"); > > } > > while (1) { > > my @alsaevent = MIDI::ALSA::input(); > > do_something( @alsaevent ); > > } > > The corresponding C routines are in > > http://cpansearch.perl.org/src/PJB/MIDI-ALSA-1.14/ALSA.xs > > or within > > http://www.pjb.com.au/comp/lua/midialsa-1.15.tar.gz > > > > I'd like to suggest that -+rtmidi=alsa should create a proper > > ALSA client. If that's not possible for backward-compatibility > > reasons, I'd like to suggest a new -+rtmidi=alsaseq option. > > > > Apologies if it's been raised before and rejected... > > > > Regards, Peter Billam > > > > http://www.pjb.com.au pj@pjb.com.au (03) 6278 9410 > > "Follow the charge, not the particle." -- Richard Feynman > > from The Theory of Positrons, Physical Review, 1949 > > > > > > > > Send bugs reports to the Sourceforge bug tracker > > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > > Discussions of bugs and features can be posted here > > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >