[pygame] Determining note duration from midi input

2010-04-02 Thread Neilen
Hi, I'm trying to write a simple little sight-reading trainer using midi input. So far I have found pygame.midi (from v 1.9.1) to be great for determining note values. I can't quite figure out how to do time values though. I initially assumed that the difference in timestamps on the key-up and

Re: [pygame] Determining note duration from midi input

2010-04-02 Thread Luke Paireepinart
On Fri, Apr 2, 2010 at 3:46 AM, Neilen nmar...@gmail.com wrote: Hi, If the midi timestamps can't be used, the only way I can see to get duration info is to have a busy-waiting loop polling a pygame.midi.Input object and manually saving pygame.midi.time() timestamps each time a midi event

[pygame] Re: Determining note duration from midi input

2010-04-02 Thread Neilen
Hi Luke On Apr 2, 11:21 am, Luke Paireepinart rabidpoob...@gmail.com wrote: On Fri, Apr 2, 2010 at 3:46 AM, Neilen nmar...@gmail.com wrote: Hi, Can you create a minimal version of your code and post it to pastebin or something? I've never used pygame.midi before but I've used midi for a

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

2010-04-02 Thread Luke Paireepinart
On Fri, Apr 2, 2010 at 7:05 AM, Neilen nmar...@gmail.com wrote: Hi Luke On Apr 2, 11:21 am, Luke Paireepinart rabidpoob...@gmail.com wrote: On Fri, Apr 2, 2010 at 3:46 AM, Neilen nmar...@gmail.com wrote: Hi, Can you create a minimal version of your code and post it to pastebin or

Re: [pygame] Re:

2010-04-02 Thread Nirav Patel
To head off the inevitable deluge of emails that follows messages like this, You're Doing It Wrong. http://www.pygame.org/wiki/info#Mailing%20List Nirav On Fri, Apr 2, 2010 at 5:33 AM, Sanjay Nambiar sanjay.mnamb...@gmail.com wrote: unsubscribe pygame-users On 4/2/10, Yanom Mobis