Alex, This is even better! Attached is a convenient midicut.sh wrapper I wrote for myself. This midish functionality would make my choir-part practicing more efficient. It works nicely. Though, looks like some tracks information (from the header?) is lost. For example, running 'timidity' on some original midi file gives $ timidity BACH_BMINOR_MASS_1_04GLORIA_ten.mid Requested buffer size 32768, fragment size 8192 ALSA pcm 'default' set buffer size 32768, period size 8192 bytes Playing BACH_BMINOR_MASS_1_04GLORIA_ten.mid MIDI file: BACH_BMINOR_MASS_1_04GLORIA_ten.mid Format: 1 Tracks: 9 Divisions: 384 Track name: Soprano I Track name: Soprano II Track name: Alto Track name: Tenor Track name: Bass Track name: organ rh Track name: organ lh Track name: meter and with the extracted-cut, just: $ timidity gloria-ten1.midi Requested buffer size 32768, fragment size 8192 ALSA pcm 'default' set buffer size 32768, period size 8192 bytes Playing gloria-ten1.midi MIDI file: gloria-ten1.midi Format: 1 Tracks: 10 Divisions: 384 Thanks! -- yotam On Sat, Aug 4, 2012 at 2:22 PM, Alexandre Ratchov <alex@caoua.org> wrote: > > Hi, > > Midish can use only measure numbers as time units. If this is OK > for you, you can use 'mcut' to remove parts of the midi file you > don't want. > > Example, to select measures 17..33 > > import "input.mid" > g 33 > sel [mend] > mcut > g 0 > sel 17 > mcut > export "result.mid" > > -- Alexandre >
This archive was generated by hypermail 2.1.8 : Wed Nov 08 2017 - 16:32:23 CET