On Tuesday 18 April 2006 07:10, Aaron Krister Johnson wrote: > I'd like to use my serial port (/dev/ttyS0) for send MIDI data to Csound, > which worked fine in Csound4 (simple--- "-M/dev/ttyS0" and you're good to go) Well, I am not sure if ALSA can use the serial port devices for MIDI, but you can work around the issue by piping MIDI data from /dev/ttyS0 to a virtual MIDI or MIDI through device, for example: dd if=/dev/ttyS0 of=/dev/snd/midiC1D0 bs=1 > Why is such a simple thing so impossible with Csound5? I tried the > "-+rtmidi=alsa -Mhw:1,0" options, and Csound5 doesn't even recognize that I > have a virmidi driver in the kernel, complaining of no such device. Did you try using the PortMidi driver (which is the default) ? If you do use -+rtmidi=alsa then make sure that you select the right device name. Also, the virmidi driver in ALSA tends to behave in a somewhat buggy and inconsistent way; I often need to use hacks like this to pipe data from one virmidi port to another, and only then can I read MIDI: dd if=/dev/snd/midiC1D0 of=/dev/snd/midiC1D1 bs=1 > I tried the "-+rtmidi=null -M/dev/ttyS0" line, and that failed too....why is > this so hard? The 'null' MIDI driver, as its name says, is a dummy one, so you cannot expect it to read or write any actual MIDI devices. If you still cannot solve the problem, then the Csound4-style MIDI I/O that uses files in /dev can easily be added back as an -+rtmidi option. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net