Re: [LAU] Extracting the tempo track from a MIDI file

From: Brendon Oliver <brendon.oliver@email-addr-hidden>
Date: Tue Sep 25 2007 - 05:16:39 EEST

On Tuesday 25 September 2007 12:00:38 Ken Restivo wrote:
> Is there any command-line tool to extract and print the tempo of a MIDI
> file?
>
> I suppose I could read the MIDI spec, and hack something up pretty quickly
> in Python/Perl/PD/C/etc to extract that data, but why reinvent the wheel
> if there's already a tool that'll do that?

If you're going to write something in perl, have a look at MIDI-Perl:

http://search.cpan.org/~sburke/MIDI-Perl-0.81/

shouldn't be too hard to cobble up what you need with that.

cheers,

- Brendon.

-- 
MOUNT TAPE U1439 ON B3, NO RING
 12:15:12 up 12 days, 10:32,  2 users,  load average: 0.28, 0.68, 0.94
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
Received on Tue Sep 25 08:15:03 2007

This archive was generated by hypermail 2.1.8 : Tue Sep 25 2007 - 08:15:03 EEST