Csound Csound-dev Csound-tekno Search About

[Csnd] real-time midi in Python

Date2009-02-16 03:17
FromMichael Mossey
Subject[Csnd] real-time midi in Python
Can someone recommend a way to send real-time midi messages in Python? 
There is a pyPortMidi package. It doesn't seem to have a binary 
available for Python 2.5.x, however (anyone have one)?

Thanks,
Mike

Date2009-02-16 03:54
FromDavidW
Subject[Csnd] Re: real-time midi in Python
Hi Mike,
How about the PYMIDI framework? see

http://sonification.com.au/sonipy/routing.html#pymidi
for details

It's been awhile for me, so let us know how you get on.

David
On 16/02/2009, at 2:17 PM, Michael Mossey wrote:

> Can someone recommend a way to send real-time midi messages in  
> Python? There is a pyPortMidi package. It doesn't seem to have a  
> binary available for Python 2.5.x, however (anyone have one)?
>
> Thanks,
> Mike
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

________________________________________________
David Worrall.
- Experimental Polymedia:	www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group:	creative.canberra.edu.au/scrg



Date2009-02-16 03:58
FromMichael Mossey
Subject[Csnd] Re: Re: real-time midi in Python

DavidW wrote:
> Hi Mike,
> How about the PYMIDI framework? see
> 
> http://sonification.com.au/sonipy/routing.html#pymidi
> for details
> 
> It's been awhile for me, so let us know how you get on.
> 

Might be good. It doesn't have a Windows binary, however. I'm not sure I 
want to get into building it myself.

Mike

Date2009-02-16 04:55
FromMichael Mossey
Subject[Csnd] Re: real-time midi in Python (WINDOWS)

Michael Mossey wrote:
> Can someone recommend a way to send real-time midi messages in Python? 
> There is a pyPortMidi package. It doesn't seem to have a binary 
> available for Python 2.5.x, however (anyone have one)?
I should have said, I'm looking for Windows.


Date2009-02-16 05:24
FromDavidW
Subject[Csnd] Re: Re: real-time midi in Python (WINDOWS)
Yep - specifying a platform always helps. Also what you meant by  
"binary" is not clear, as python "compiles" to byte-code (.pyc). I  
assumed you meant an auto installer. The Americans are probably asleep  
at the moment.  It's been a long time since midi for me, so I'm only  
answering 'cause of that.  From memory, Tim Mortimer was using python  
+ windows + midi. I haven't heard from him for a while, incl. on this  
list. - Perhaps you can search the mail-list archive or try timmortimer@d2.net.au 
.

ciao,

D.

On 16/02/2009, at 3:55 PM, Michael Mossey wrote:

>
>
> Michael Mossey wrote:
>> Can someone recommend a way to send real-time midi messages in  
>> Python? There is a pyPortMidi package. It doesn't seem to have a  
>> binary available for Python 2.5.x, however (anyone have one)?
> I should have said, I'm looking for Windows.
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

________________________________________________
David Worrall.
- Experimental Polymedia:	www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group:	creative.canberra.edu.au/scrg


Date2009-02-16 08:56
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: real-time midi in Python (WINDOWS)
There was a pyPortMidi module for python,
I tested it briefly two years ago, and it works fine.
I started doing it in another manner (midi into Csound, calling py
opcodes from there), so I haven't done it directly in Python for a
while.
I can't seem to find any complete examples either, sorry.
But the name of the module in python was "pypm" for pyPortMidi.

best
Oeyvind

2009/2/16 Michael Mossey :
>
>
> Michael Mossey wrote:
>>
>> Can someone recommend a way to send real-time midi messages in Python?
>> There is a pyPortMidi package. It doesn't seem to have a binary available
>> for Python 2.5.x, however (anyone have one)?
>
> I should have said, I'm looking for Windows.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>