Re: multitrack export midi type 0 (gramophone2) issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux