Csound Csound-dev Csound-tekno Search About

[Csnd] Re al-Time MIDI Input

Date2008-06-04 22:55
FromJim Aikin
Subject[Csnd] Re al-Time MIDI Input
I'm attempting to get real-time MIDI input to Csound in Windows, and it's not
working.

As noted in earlier threads, I'm working on a magazine article on Csound,
and I'd love to be able to report that I actually got it working. I've
pretty much given up on CsoundVST, which as far as I can see simply doesn't
work in my computer, but I'm still hopeful about stand-alone real-time
operation.

The page on "Real-time MIDI Support" in the manual is not helpful. It
immediately tosses in several items that I don't understand.

Michael Gogins's tutorial has a clearly written section on real-time MIDI in
Windows, but the instructions in that section don't work for me. I've loaded
the .csd he recommends (CsoundVST-nomixer.csd), added the code he suggests
in the tutorial, and, after a bit of wrangling, managed to get my MIDI input
port configured correctly. (I happen to need to use port 9, not 0, which
meant I had to edit the .csd a bit more.)

But when I hit the play button in the Csound5gui, "playback" starts and
stops immediately, without waiting for any MIDI notes to arrive.

What am I doing wrong? Suggestions would be welcome.

--Jim Aikin

-- 
View this message in context: http://www.nabble.com/Real-Time-MIDI-Input-tp17657585p17657585.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2008-06-04 23:02
From"Steven Yi"
Subject[Csnd] Re: Re al-Time MIDI Input
AttachmentsNone  

Date2008-06-04 23:08
From"Andres Cabrera"
Subject[Csnd] Re: Re al-Time MIDI Input
AttachmentsNone  None  

Date2008-06-04 23:53
FromJim Aikin
Subject[Csnd] Re: Re al-Time MIDI Input
Ah, yes. Very obvious. Thanks, all. I was misled by the tutorial, which fails
to mention this crucial step.

We're making progress. I now get ugly grinding noises when I play the MIDI
keyboard.

If I bump the buffer size up to 512, I hear a nice tone ... but of course
there is now a bit of audible latency.

It would appear that real-time Csound is not a low-latency ASIO device. Am I
correct in this assumption? The nominal latency figure Michael gives for
these settings in his tutorial is 11.6ms, but it sounds as if it's at least
three times that.

--JA



-- 
View this message in context: http://www.nabble.com/Real-Time-MIDI-Input-tp17657585p17658510.html
Sent from the Csound - General mailing list archive at Nabble.com.