Re: [pygame] Re: Determining note duration from midi input

2010-04-03 Thread Neilen Marais
Hi Luke On Fri, Apr 2, 2010 at 7:00 PM, Luke Paireepinart rabidpoob...@gmail.com wrote: No problem. I just changed 'casio_i' until it started reading midi data from my keyboard.  my ID was 1.  how did you figure out your ID's? trial and error? There is pygame.midi.get_count() and

Re: [pygame] Determining note duration from midi input

2010-04-03 Thread Luke Paireepinart
Something's rotten somewhere... I'll have to check the midi spec and see, but I think timestamps are part of it. IIRC, the server sends info to the device telling it to start timestamping relative to a particular time. If this is correct, then something may be wrong with the lib or your device. If

[pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Mathieu Richardoz
Hello fellow PyGamers, I have a very annoying problem with my PyGame installation under Mac OS X 10.6 Snow Leopard. When I execute a PyGame program from the Terminal, the keys I press are not sent to the game window but to the Terminal window itself, where they are echoed, which means that no

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Dan Ross
Hi Math- Could you post some of your key event code for us to look at? On 4/3/10 8:03 AM, Mathieu Richardoz wrote: Hello fellow PyGamers, I have a very annoying problem with my PyGame installation under Mac OS X 10.6 Snow Leopard. When I execute a PyGame program from the Terminal, the keys

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Mathieu Richardoz
Hi Dan, Thank you for your reply :-) Here's the code: --- import pygame pygame.init() screen = pygame.display.set_mode((640, 480)) background = pygame.Surface(screen.get_size()) background = background.convert() background.fill((0, 0, 255)) box = pygame.Surface((25, 25)) box = box.convert()

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Dan Ross
Not really. In fact, it works fine on my 10.6.2 MacBook Pro. A difference would be that I use ActivePython rather that MacPorts Python. Does the screen appear on your machine? The red box just doesn't move? On 4/3/10 8:54 AM, Mathieu Richardoz wrote: Hi Dan, Thank you for your reply :-)

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Mathieu Richardoz
Thanks Dan. That's it, the red box doesn't move, and when I press the arrow keys, I see the keypresses being echoed inside the terminal, which makes me assume they are not being seen by my pygame window. I've tried to implement other event types, such as MOUSEBUTTONUP and MOUSEBUTTONDOWN and

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Dan Ross
I believe I installed the binary from the PyGame website after installing ActivePython. No trouble at all. On 4/3/10 9:05 AM, Mathieu Richardoz wrote: Thanks Dan. That's it, the red box doesn't move, and when I press the arrow keys, I see the keypresses being echoed inside the terminal,

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Mathieu Richardoz
Thanks a lot for pointing me to ActivePython, it's working like a charm, and I didn't even have to reinstall PyGame :D I am now wondering if maybe, juste maybe, I could run my Django projects on top of this Python as well, but I guess that is well beyond the scope of this list, so I'll shut up

Re: [pygame] Keyboard events problem in Mac OS X 10.6 Snow Leopard

2010-04-03 Thread Dan Ross
Glad it worked Math. On 4/3/10 9:17 AM, Mathieu Richardoz wrote: Thanks a lot for pointing me to ActivePython, it's working like a charm, and I didn't even have to reinstall PyGame :D I am now wondering if maybe, juste maybe, I could run my Django projects on top of this Python as well, but I

[pygame] Determining note duration from midi input

2010-04-03 Thread Jake b
I think you've done this already, but maybe ticks with buffersize does something? Save the Normal get_ticks() on keydown, and then on keyup, print difference. ( on phone so I don't know the exact sdl_getticks() pygame function ) I found a few notes reading the docs: Excerp from docs:

Re: [pygame] GSoC project proposal: A new draw module

2010-04-03 Thread jug
Marcus von Appen wrote: What would be interesting here is, what the Pen class would offer except from the drawing functions wrapped up in a class and som additional shapes. What about e.g. an aa-property to keep the argument amount low, transformation and rotation angles for the x- and y-axis

Re: [pygame] GSoC project proposal: A new draw module

2010-04-03 Thread Kris Schnee
On 4/3/2010 12:58 PM, jug wrote: Marcus von Appen wrote: What would be interesting here is, what the Pen class would offer except from the drawing functions wrapped up in a class and som additional shapes. What about e.g. an aa-property to keep the argument amount low, transformation and