On Fri, Feb 24, 2006 at 07:46:15PM -0500, Paul Winkler wrote: > On Fri, Feb 24, 2006 at 11:25:11PM +0100, Frank Barknecht wrote: > > Hallo, > > Joshua Boyd hat gesagt: // Joshua Boyd wrote: > > > > > A lot of devices and software systems (of the commercial type at least) > > > seem to have a tap tempo system where two taps are all that is needed to > > > set the tempo of an effect or sequence. > > > Two tabs normally aren't enough IMO, however that really is easy to do > > in, guess it: Pd. Attached is the naive idiom which just spits out the > > time interval between two events. > > Heh, I have an old tossed-off python script that may be handy too. > Just run it from the command line, tap any key any number of times, > hit "q" when you're done and it prints estimated BPM. > > But it's ancient and uses a deprecated library module; > so it only works in Python < 2.4. > > It's at http://www.slinkp.com/code/tempotool.py Hi Paul, nice :) I just tried it ... if you replace all instances of TERMIOS with termios (and then remove the redundant import), it works in python 2.4. cheers, Conrad.