Csound Csound-dev Csound-tekno Search About

[Csnd] Multiple RT MIDI outs

Date2014-08-13 15:54
FromChuckk 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.
Can I have an arbitrary number of RT MIDI output ports? My "microtonal" sequencer will most likely remain MIDIless until I can send to more than 16 individual channels, but MIDI output is the number one request I've had since I published it in 2008.
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



Date2014-08-17 18:16
FromChuckk Hubbard
SubjectRe: [Csnd] Multiple RT MIDI outs
Hi again.
I'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!
-Chuckk


On Wed, Aug 13, 2014 at 5:54 PM, Chuckk Hubbard <badmuthahubbard@gmail.com> wrote:
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.
Can I have an arbitrary number of RT MIDI output ports? My "microtonal" sequencer will most likely remain MIDIless until I can send to more than 16 individual channels, but MIDI output is the number one request I've had since I published it in 2008.
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





--
http://www.badmuthahubbard.com

Date2014-08-18 00:14
FromSteven Yi
SubjectRe: [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
 wrote:
> Hi again.
> I'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!
> -Chuckk
>
>
> On Wed, Aug 13, 2014 at 5:54 PM, Chuckk Hubbard 
> wrote:
>>
>> 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.
>> Can I have an arbitrary number of RT MIDI output ports? My "microtonal"
>> sequencer will most likely remain MIDIless until I can send to more than 16
>> individual channels, but MIDI output is the number one request I've had
>> since I published it in 2008.
>> 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
>>
>>
>
>
>
> --
> http://www.badmuthahubbard.com

Date2014-08-28 13:59
FromChuckk Hubbard
SubjectRe: [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.

-Chuckk



On Mon, Aug 18, 2014 at 2:14 AM, Steven Yi <stevenyi@gmail.com> wrote:
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
<badmuthahubbard@gmail.com> wrote:
> Hi again.
> I'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!
> -Chuckk
>
>
> On Wed, Aug 13, 2014 at 5:54 PM, Chuckk Hubbard <badmuthahubbard@gmail.com>
> wrote:
>>
>> 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.
>> Can I have an arbitrary number of RT MIDI output ports? My "microtonal"
>> sequencer will most likely remain MIDIless until I can send to more than 16
>> individual channels, but MIDI output is the number one request I've had
>> since I published it in 2008.
>> 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
>>
>>
>
>
>
> --
> http://www.badmuthahubbard.com


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






--
http://www.badmuthahubbard.com