Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Pedro Kroger
On Aug 10, 2012, at 3:52 PM, Chuck wrote: >if __name__ == '__main__': > >quiz() > > You need to instantiate your class: foo = ElementsQuiz() foo.quiz() Pedro - http://pedrokroger.net http://musicforgeeksandnerds.com -- http://mail.python.org/mailman/listinfo/pyth

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-31 Thread Pedro Kroger
On Aug 1, 2012, at 12:19 AM, Peter Billam wrote: > I'll check it out. It probably fits into a whole software > ecosystem that you're putting together … yes, I use it for my book, Music for Geeks and Nerds and for teaching. > It's a crowded area, e.g. my midi stuff is at: > http://www.pjb.com.

Re: docx/lxml

2012-07-31 Thread Pedro Kroger
On Jul 31, 2012, at 10:36 AM, cyrille.ler...@gmail.com wrote: > - Do you know any *easy to use*, *easy to deploy* package to generate ".doc > like" documents ? > - Do you have any suggestion to do it differently (maybe with native packages > ?) > > - As a python newby, I don't understand why y

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Pedro Kroger
On Jul 30, 2012, at 3:33 PM, Ethan Furman wrote: > Pedro Kroger wrote: >> Pyknon is a simple music library for Python hackers. > > Sounds cool. How is 'Pyknon' pronounced? I pronounce it similarly as google translate does: http://translate.google.com/#English|Engli

[ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Pedro Kroger
Pyknon is a simple music library for Python hackers. With Pyknon you can generate Midi files quickly and reason about musical proprieties. It works with Python 2.7 and 3.2. Pyknon is very simple to use, here's a basic example to create 4 notes and save into a MIDI file:: from pyknon.genmidi i

Re: Real time event accuracy

2012-05-09 Thread Pedro Kroger
> I'd also appreciate suggestions and pointers to a > suitable python MIDI library, and maybe an outline > of what must be done to get the MIDI events to the other program's MIDI in. Mark Wirt's MidiUtil is a nice library for MIDI. It doesn't do exactly what you want (it generates MIDI files) bu

Re: Real time event accuracy

2012-05-09 Thread Pedro Kroger
I don't know the details of how Kontakt works, but you can try pygame.midi: pygame.midi - is a portmidi wrapper orginally based on the pyportmidi wrapper. Also pygame.music can play midi files. Can get input from midi devices and can output to midi devices. For osx, linux and windows. New with p

Re: Converting a string to list for submission to easygui multenterb​ox

2012-05-01 Thread Pedro Kroger
Have you tried to use the function list?: foo = (1,2,3) list(foo) Cheers, Pedro -- http://pedrokroger.net On May 1, 2012, at 5:18 PM, ksals wrote: > Please help a newbe. I have a string returned from an esygui > multchoicebox that looks like > this: ('ksals', '', 'alsdkfj', '3', '') I ne