[Csnd] Multiple RT MIDI outs
Date | 2014-08-13 15:54 |
From | Chuckk Hubbard |
Subject | [Csnd] Multiple RT MIDI outs |
Hi. I've asked this before but the answer was that it was impossible. I had the impression that Csound 6 would make it possible, but maybe I was just fantasizing.Pd's implementation works so that if you have 2 output ports, channels 16-31 (IIRC) send to the second port's 0-15. I toyed with the idea of creating multiple Csound instances, each filtering messages for one port, but the level of complexity grew, and timing is important too. Have any solutions appeared for this? Thanks! -Chuckk |
Date | 2014-08-17 18:16 |
From | Chuckk Hubbard |
Subject | Re: [Csnd] Multiple RT MIDI outs |
Hi again. -ChuckkI've decided to try pygame for this. I'd looked into it before, but the MIDI part wasn't working well on all platforms. It's also too bad I won't be able to sync the timing perfectly to have MIDI outputs working side-by-side with Csound outputs, but I suspect most of the potential users who've asked about MIDI outputs are not Csound users. I've also tried to keep dependencies to a minimum. Any other suggestions welcome! On Wed, Aug 13, 2014 at 5:54 PM, Chuckk Hubbard <badmuthahubbard@gmail.com> wrote:
-- http://www.badmuthahubbard.com |
Date | 2014-08-18 00:14 |
From | Steven Yi |
Subject | Re: [Csnd] Multiple RT MIDI outs |
Hi Chuckk, Adding multiple devices seems like it would be a large task. I don't know if anyone's done an analysis on the code to understand what would be necessary. Perhaps add a ticket to the Csound issue tracker on github for this? A short term solution might be to use OSC output from Csound, sending it to localhost on on a port you could listen to from Rationale using pyOSC, then send out MIDI from there. I imagine there might be some timing issues there but it might work. steven On Sun, Aug 17, 2014 at 1:16 PM, Chuckk Hubbard |
Date | 2014-08-28 13:59 |
From | Chuckk Hubbard |
Subject | Re: [Csnd] Multiple RT MIDI outs |
Thanks, Steven. I thought of creating a separate Csound object in Python for each MIDI device and triggering them through callbacks from the main Csound instance which controls the timing, but at the time I couldn't get the callbacks to work right. Now I'm thinking it might also use too much CPU. Now I'm considering using score sort to translate a Rationale score to seconds, then use that list with Pygame or what have you. Actually, I'm leaning towards working on VST output through Csound first. It seems like most of the composers I know are more likely to use that than routing MIDI between standalone applications.On Mon, Aug 18, 2014 at 2:14 AM, Steven Yi <stevenyi@gmail.com> wrote: Hi Chuckk, -- http://www.badmuthahubbard.com |