Re: Import .MID file, write a new track with metronome events, export this track to .MID file (in batch mode)

From: Alexandre Ratchov <alex_at_caoua.org>
Date: Wed Jul 30 2008 - 16:37:32 CEST
On Wed, Jul 30, 2008 at 01:33:39PM +0200, éléandar wrote:
> Hy,
> 
> I would like to import a .MID file, create a new track with metronome events
> and then export only the metronome track into a new .MID file.
> 
> Could you give me some advice on doing this task with midish ?
> 

metronome events are generated on the fly during playback, there's
no associated track, and no function to generate the metronome
events into a track.

If you really need this, there's a last resort hack: you could
start two midish processes and use the first one to record the
metronome of the second one. To synchronize them, create an unix
fifo, configure the first midish process to use the fifo as master
read-only device (see dnew, dclkrx) and the second midish process
to use the fifo as slave write-only device (see dclktx). Then load
the same file in both instances, delete all tracks and start
playback/recod. That's tedious, ugly and not scriptable.

If you plan to do this frequently, it would be simpler to spent
some time on implementing the corresponding missing feature.

-- Alexandre
Received on Wed, 30 Jul 2008 16:37:32 +0200

This archive was generated by hypermail 2.1.8 : Wed Nov 08 2017 - 16:32:20 CET