Re: [LAU] midi in python, 2 pygame.midi questions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Atte <atte@...>
Cc: A list for linux audio users <linux-audio-user@...>
Date: Friday, October 4, 2013 - 10:07 pm

--089e0102fb5c0c74d604e7f1887f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I used to use pypm but it has become a bit of a pain (in my case, I also
had to deploy on MacOSX which became almost impossible without jumping
through hoops). So I found portmidizero (https://gitorious.org/portmidizero=
)
which so far seems to be doing the job but I have not yet worked with it
extensively. However, you cannot install it with easy-install as there are
errors in setup.py (description repeated twice or something like that...
grab the gitorious source, hack it and do setup.py install). pygame seems
like an overkill just for MIDI functionality...

Good luck.

Micha=C5=82

On Thu, Oct 3, 2013 at 12:31 PM, Atte wrote:

> Hi

ll
?
e

--089e0102fb5c0c74d604e7f1887f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I used to use pypm but it has become a bit of a pain =
(in my case, I also had to deploy on MacOSX which became almost impossible =
without jumping through hoops). So I found portmidizero (https://gitorious.org/portmidizero) which =
so far seems to be doing the job but I have not yet worked with it extensiv=
ely. However, you cannot install it with easy-install as there are errors i=
n setup.py (description repeated twice or something like that... grab the g=
itorious source, hack it and do setup.py install). pygame=C2=A0 seems like =
an overkill just for MIDI functionality...

Good luck.=
Micha=C5=82
On Thu, Oct 3, 2013 at 12:31 PM, Atte <at=
te@youmail.dk
> wrote:

Hi

I'm working on some midi thing in python. I had a hard time finding a d=
ecent library. In the past I used PySeq alot, but that's tricky to inst=
all and seems un-maintained. So I settled for pygame, and it's going ok=
. However:

1) In PySeq I created inports and outports that were visible for instance i=
n qjackctl. Is that possible in pygame (currently I just connect to the rig=
ht client from python)? Why would I prefer one over way over the other?

2) If I unplug the connected client or press ctrl-c (my preferred way of ex=
iting my programs) I get:

PortMidi call failed...
=C2=A0 PortMidi: `Bad pointer'
type ENTER...

How can I exit a pygame program cleanly without getting errors?

3) One of the things I'd like to do I automatically connect to any clie=
nt that shows up while the program is running and *gracefully handle it* if=
clients disappear while the program is running. I imagine the first is a m=
atter of scanning for clients every now and then, but right now I get the e=
rror mentioned in 2) if I pull the plug on a device that my program is conn=
ected to. Any ideas how to handle this?

Any feedback is greatly appreciated!

--
Atte

http://atte.dk =C2=A0 http://modlys.dk
_______________________________________________
Linux-audio-user mailing list
=
Linux-audio-user@lists.linuxaudio.org

http://lists.linuxaudio.org/listinfo/linux-audio-user

--089e0102fb5c0c74d604e7f1887f--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAU] midi in python, 2 pygame.midi questions, Michal Seta, (Fri Oct 4, 10:07 pm)