[LAU] converting MIDI file format 0 to 1?

Ken Restivo ken at restivo.org
Mon Sep 10 21:13:47 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Sep 10, 2007 at 11:53:56AM +0200, Pedro Lopez-Cabanillas wrote:
> On Saturday, 8 September 2007 18:00, Ken Restivo wrote:
> >   On Fri, Sep 07, 2007 at 11:29:29PM -0400, Paul Coccoli wrote:
> > > Does anyone know how to convert a MIDI file from format 0 to 1?
> > > KeyKit produces the former, seq24 can apparently read the latter. ?I
> > > want to get sequences I generate in KeyKit into seq24.
> > >
> > > A command line tool would be best, but any suggestions are welcome.
> >
> > Kind of tangential to your question, but I posess lots of MIDI format 1
> > files that seq24 *cannot* or will not open or import.
> >
> > This includes files created with arecordmidi.
> >
> > Steps to duplicate the problem:
> >
> > ????????1) record some MIDI from a keyboard using arecordmidi
> > ????????2) verify that you now have a type 1 MIDI file (I use the "file"
> > command) 3) open up seq24
> > ????????4) try to get that file in there. It won't, at least on my machine.
> 
> It would be interesting to know the command line options used with  
> arecordmidi. It creates SMF format 0 by default. If you add the -s, 
> (--split-channels) option to the command line, it creates SMF format 1.
> 

Works perfectly! Thanks! 

The man page for arecordmidi doesn't specifically mention format 0 or format 1. But your -s flag does indeed cause it to create a format 1 file, which imports perfectly into seq24. Many thanks!

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG5evLe8HF+6xeOIcRAl49AJ92R5PGNjhoMuXssWFrVP3GK1EHMQCfREsE
rxtTAwsCyjJUEwVNckS0h8g=
=VV9S
-----END PGP SIGNATURE-----



More information about the Linux-audio-user mailing list