[LAU] multitrack export midi type 0 (gramophone2) issue
Christopher Arndt
chris at chrisarndt.de
Sat Feb 20 15:30:39 UTC 2016
Am 20.02.2016 um 15:24 schrieb Benoît Rouits:
> So, all midi sequencers i tried does only import track #1 while there
> are 3 or 4 in the midi file with different speeds.
If they are really type 0 MIDI files, there's only one track. If not,
they don't comply with the standard.
If the MIDI events of a type 0 file have a different MIDI channel for
each "logical" track, it's easy to split them up. One tool that can do
this is midicopy, which is contained in the abcmidi distribution.
If you need to split up logical tracks by note range, you could use
mididings [1], e.g.:
#/usr/bin/env python
from mididings import KeyFilter, process_file
process_file("input.mid", "output.mid", "KeyFilter('c1:c3')")
That doesn't take MIDI events, which are not of the note on/off type
into account, though, and doesn't help for files, where the note ranges
of logical tracks overlap. Also note that you have to install pysmf in
addition to mididings to be able to use the "process_file" function.
Chris
[1] http://das.nasophon.de/mididings/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 979 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20160220/67a2c736/attachment.pgp>
More information about the Linux-audio-user
mailing list