Csound Csound-dev Csound-tekno Search About

[Csnd] midi from linux to mac over ethernet

Date2010-04-29 00:29
FromMatti Koskinen
Subject[Csnd] midi from linux to mac over ethernet
hi,
I have ubuntu 9.10 linux box with old Soundblaster Live card, which has MIDI i/o. On my mac I don't have midi, and would like to ask if there exists some easy way to send MIDI data from linux to mac over ethernet, and in mac read the MIDI data for csound?

I've been googling around, but haven't found anything concrete. One thing was to send via OSC, but I'd like to send pure MIDI for csound and grace.

TIA

-matti



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"


Date2010-04-29 00:42
FromVictor Lazzarini
Subject[Csnd] Re: midi from linux to mac over ethernet
Why don't you use a csound reading MIDI in the Linux machine, sending  
OSC over ethernet to your Mac, which then reads OSC.

This works well; I did a demo to students in class with a keyboard  
connected to my laptop and sound playing from one of the lab
machines, over ethernet via OSC. Something like this:

gio OSCinit 44101

instr 1
ktrig init 1
k1 cpsmidib 1
i1 ampmidi 0dbfs
if ktrig == 1 then
kinst rand 1000, 2
kinst = 2 + abs(kinst)/1000
OSCsend 0,"10.204.24.79",44100, "/instr2","fffff",kinst,0,-1,i1, k1
OSCsend 0,"10.204.24.73",44100, "/instr2","fffff",kinst,0,-1,i1, k1
OSCsend 0,"10.204.24.75",44100, "/instr2","fffff",kinst,0,-1,i1, k1
OSCsend 0,"10.204.24.76",44100, "/instr2","fffff",kinst,0,-1,i1, k1
ktrig = 0
endif
ktag release
if ktag == 1 then
OSCsend 0,"10.204.24.79",44100, "/instr2","fffff",-kinst,0,1,i1, k1
OSCsend 0,"10.204.24.73",44100, "/instr2","fffff",-kinst,0,-1,i1, k1
OSCsend 0,"10.204.24.75",44100, "/instr2","fffff",-kinst,0,-1,i1, k1
OSCsend 0,"10.204.24.76",44100, "/instr2","fffff",-kinst,0,-1,i1, k1
turnoff
endif



Victor

On 29 Apr 2010, at 00:29, Matti Koskinen wrote:

> hi,
> I have ubuntu 9.10 linux box with old Soundblaster Live card, which  
> has MIDI i/o. On my mac I don't have midi, and would like to ask if  
> there exists some easy way to send MIDI data from linux to mac over  
> ethernet, and in mac read the MIDI data for csound?
>
> I've been googling around, but haven't found anything concrete. One  
> thing was to send via OSC, but I'd like to send pure MIDI for csound  
> and grace.
>
> TIA
>
> -matti
>
>
>
> 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"
>



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"

Date2010-04-29 00:52
FromMatti Koskinen
Subject[Csnd] Re: Re: midi from linux to mac over ethernet
On Apr 29, 2010, at 2:42 AM, Victor Lazzarini wrote:

> Why don't you use a csound reading MIDI in the Linux machine, sending OSC over ethernet to your Mac, which then reads OSC.
> 
> This works well; I did a demo to students in class with a keyboard connected to my laptop and sound playing from one of the lab
> machines, over ethernet via OSC. Something like this:
> 
> gio OSCinit 44101
> 
> instr 1
> ktrig init 1
> k1 cpsmidib 1
> i1 ampmidi 0dbfs
> if ktrig == 1 then
> kinst rand 1000, 2
> kinst = 2 + abs(kinst)/1000
> OSCsend 0,"10.204.24.79",44100, "/instr2","fffff",kinst,0,-1,i1, k1
> OSCsend 0,"10.204.24.73",44100, "/instr2","fffff",kinst,0,-1,i1, k1
> OSCsend 0,"10.204.24.75",44100, "/instr2","fffff",kinst,0,-1,i1, k1
> OSCsend 0,"10.204.24.76",44100, "/instr2","fffff",kinst,0,-1,i1, k1
> ktrig = 0
> endif
> ktag release
> if ktag == 1 then
> OSCsend 0,"10.204.24.79",44100, "/instr2","fffff",-kinst,0,1,i1, k1
> OSCsend 0,"10.204.24.73",44100, "/instr2","fffff",-kinst,0,-1,i1, k1
> OSCsend 0,"10.204.24.75",44100, "/instr2","fffff",-kinst,0,-1,i1, k1
> OSCsend 0,"10.204.24.76",44100, "/instr2","fffff",-kinst,0,-1,i1, k1
> turnoff
> endif
> 
> 
> 
> Victor
> 
thanks, it's just been long time, since I last made any instruments in csound, so it'll take some time to get everything right.

-matti



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"


Date2010-04-29 00:56
FromOeyvind Brandtsegg
Subject[Csnd] Re: midi from linux to mac over ethernet
Maybe you could look at the various midi over lan solutions?
just a few quick links, I haven't checked linux compatibility, but I'm
sure there must be something ...
http://www.musiclab.com/products/rpl_info.htm
http://nerds.de/en/ipmidi.html
http://www.resolume.com/forum/viewtopic.php?f=13&t=4632
http://www.northernsounds.com/forum/archive/index.php/t-49974.html

let us know if you make something out of it
Oeyvind

2010/4/29 Matti Koskinen :
> hi,
> I have ubuntu 9.10 linux box with old Soundblaster Live card, which has MIDI i/o. On my mac I don't have midi, and would like to ask if there exists some easy way to send MIDI data from linux to mac over ethernet, and in mac read the MIDI data for csound?
>
> I've been googling around, but haven't found anything concrete. One thing was to send via OSC, but I'd like to send pure MIDI for csound and grace.
>
> TIA
>
> -matti
>
>
>
> 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"
>
>


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"