From: Peter B. <pj...@pj...> - 2014-08-08 02:56:00
|
Greetings all, I'm trying to split a .mid file t.mid into separate channels eg t_cha0.mid t_cha1.mid t_cha4.mid then convert each of those to wav t_cha0.wav t_cha1.wav t_cha4.wav so that I can treat them with effects eg using sox then mix them back together eg using ecasound. BUT when I convert mid->wav using timidity, eg: timidity -Ow -o t_cha1.wav t_cha1.mid the four seconds of initial silence in t_cha1.mid before the first note gets suppressed :-( thus destroying the co-ordination between my files and making mixdown impossible :-( I've been through man timidity and man timidity.cfg and there are hundreds of options, but I see nothing to disable the destruction of the initial silence. I tried inserting a note_off event into t_cha1.mid just before the 4-second initial silence, but timidity is 'clever' enough to ingore it :-( Does anyone know a timidity option to preserve initial silence ? I'm on debian stable ... TiMidity++ version 2.13.2 Regards, Peter Billam http://www.pjb.com.au pj...@pj... (03) 6278 9410 "Follow the charge, not the particle." -- Richard Feynman from The Theory of Positrons, Physical Review, 1949 |
From: Bob v. d. P. <bo...@me...> - 2014-08-08 03:34:04
|
Not what you want to hear ... but I don't think so. In my program MMA I have added a "sync" option just for this reason. It creates a short (one midi tick) on and then off event at offset 0. I think this is the only way to do this. On Thu, Aug 7, 2014 at 7:40 PM, Peter Billam <pj...@pj...> wrote: > Greetings all, > > I'm trying to split a .mid file t.mid into separate channels > eg t_cha0.mid t_cha1.mid t_cha4.mid > then convert each of those to wav t_cha0.wav t_cha1.wav t_cha4.wav > so that I can treat them with effects eg using sox > then mix them back together eg using ecasound. > > BUT when I convert mid->wav using timidity, eg: > timidity -Ow -o t_cha1.wav t_cha1.mid > the four seconds of initial silence in t_cha1.mid before the first > note gets suppressed :-( thus destroying the co-ordination between > my files and making mixdown impossible :-( > > I've been through man timidity and man timidity.cfg > and there are hundreds of options, but I see nothing to > disable the destruction of the initial silence. > > I tried inserting a note_off event into t_cha1.mid just before > the 4-second initial silence, but timidity is 'clever' enough to > ingore it :-( > > Does anyone know a timidity option to preserve initial silence ? > > I'm on debian stable ... > TiMidity++ version 2.13.2 > > Regards, Peter Billam > > http://www.pjb.com.au pj...@pj... (03) 6278 9410 > "Follow the charge, not the particle." -- Richard Feynman > from The Theory of Positrons, Physical Review, 1949 > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Timidity-talk mailing list > Tim...@li... > https://lists.sourceforge.net/lists/listinfo/timidity-talk > -- **** Listen to my FREE CD at http://www.mellowood.ca/music/cedars **** Bob van der Poel ** Wynndel, British Columbia, CANADA ** EMAIL: bo...@me... WWW: http://www.mellowood.ca |
From: TAMUKI S. <ta...@li...> - 2014-08-08 05:59:38
|
Hello, From: "Peter Billam" <pj...@pj...> Subject: [timidity-talk] timidity destroys initial silence :-( Date: Fri, 8 Aug 2014 12:40 +1000 > I'm trying to split a .mid file t.mid into separate channels > eg t_cha0.mid t_cha1.mid t_cha4.mid > then convert each of those to wav t_cha0.wav t_cha1.wav t_cha4.wav > so that I can treat them with effects eg using sox > then mix them back together eg using ecasound. First, you do not have to split a midi file into separate channels. You can convert each of those to wave files using -Q option. > BUT when I convert mid->wav using timidity, eg: > timidity -Ow -o t_cha1.wav t_cha1.mid > the four seconds of initial silence in t_cha1.mid before the first > note gets suppressed :-( thus destroying the co-ordination between > my files and making mixdown impossible :-( > > I've been through man timidity and man timidity.cfg > and there are hundreds of options, but I see nothing to > disable the destruction of the initial silence. > > I tried inserting a note_off event into t_cha1.mid just before > the 4-second initial silence, but timidity is 'clever' enough to > ingore it :-( > > Does anyone know a timidity option to preserve initial silence ? To avoid skipping initial silence, you can try to add a dummy track which contains only one midi note on and off event at offset zero. Here is the sample script. In this case, the dummy track is assigned to channel 32, which is not used. ---------------------------------------------------------------------- #!/bin/sh # add a dummy track mf2t -ntv kkr8p.mid kkr8p.txt cp -p kkr8p.txt kkr8p_dummy.txt sed -i '/^MFile/s/22/23/' kkr8p_dummy.txt cat <<- "EOF" >> kkr8p_dummy.txt MTrk 0:-1:0 Meta TrkName "" 0:-1:0 Meta 0x21 01 2:-1:-2 On ch=16 note=c5 vol=64 2:0:-2 On ch=16 note=c5 vol=0 TrkEnd EOF t2mf kkr8p_dummy.txt kkr8p_dummy.mid # make wav (melody) timidity -idt -Q0,-1,-5,-11,-12,-17,-20 -Ow -o kkr8p1.wav kkr8p_dummy.mid # make wav (harmony) timidity -idt -Q1,5,9,10,11,12,17,20,32 -Ow -o kkr8p2.wav kkr8p_dummy.mid # make wav (percussion) timidity -idt -Q0,-9,-10,-32 -Ow -o kkr8p3.wav kkr8p_dummy.mid # mix them sox -m kkr8p1.wav kkr8p2.wav kkr8p3.wav kkr8p.wav ---------------------------------------------------------------------- Regards, TAMUKI Shoichi |
From: Yair K. <ce...@gm...> - 2014-08-08 09:48:15
|
<html style="direction: ltr;"> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style> </head> <body style="direction: ltr;" bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">On 08/08/2014 05:40 AM, Peter Billam wrote:<br> </div> <blockquote cite="mid:3a2b83$sn...@ip..." type="cite"> <pre wrap="">Greetings all, I'm trying to split a .mid file t.mid into separate channels eg t_cha0.mid t_cha1.mid t_cha4.mid then convert each of those to wav t_cha0.wav t_cha1.wav t_cha4.wav so that I can treat them with effects eg using sox then mix them back together eg using ecasound. BUT when I convert mid->wav using timidity, eg: timidity -Ow -o t_cha1.wav t_cha1.mid the four seconds of initial silence in t_cha1.mid before the first note gets suppressed :-( thus destroying the co-ordination between my files and making mixdown impossible :-( I've been through man timidity and man timidity.cfg and there are hundreds of options, but I see nothing to disable the destruction of the initial silence. I tried inserting a note_off event into t_cha1.mid just before the 4-second initial silence, but timidity is 'clever' enough to ingore it :-( Does anyone know a timidity option to preserve initial silence ? I'm on debian stable ... TiMidity++ version 2.13.2 Regards, Peter Billam <a class="moz-txt-link-freetext" href="http://www.pjb.com.au">http://www.pjb.com.au</a> <a class="moz-txt-link-abbreviated" href="mailto:pj...@pj...">pj...@pj...</a> (03) 6278 9410 "Follow the charge, not the particle." -- Richard Feynman from The Theory of Positrons, Physical Review, 1949 ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/bds">http://p.sf.net/sfu/bds</a> _______________________________________________ Timidity-talk mailing list <a class="moz-txt-link-abbreviated" href="mailto:Tim...@li...">Tim...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/timidity-talk">https://lists.sourceforge.net/lists/listinfo/timidity-talk</a> </pre> </blockquote> <br> There's an option for this:<br> <br> --preserve-silence<br> Do not drop initial silence. Default: drop initial silence<br> <br> </body> </html> |
From: Yair K. <ce...@gm...> - 2014-08-08 09:59:57
|
<html style="direction: ltr;"> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style> </head> <body style="direction: ltr;" bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">On 08/08/2014 12:50 PM, Yair K. wrote:<br> </div> <blockquote cite="mid:53E...@gm..." type="cite"> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; }</style>There's an option for this:<br> <br> --preserve-silence<br> Do not drop initial silence. Default: drop initial silence<br> <br> </blockquote> <br> Oh, right, that's in 2.14.0. 2.13.2 didn't have this. You can get the patch from the list and apply it, or build that version yourself.<br> </body> </html> |