Thanks for your reply. Piotrek also suggested me this way. It's a good alternative, but not the best, because the wav file takes much more space than midi file.
Timidity++ package also provides "timw32g.exe" which is the GUI version
of Timidity. I can use the mouse to drag its scroll bar and adjust the playing time. Therefore, there should some way to do the
same thing from the command line. I think one can rewrite the source
code of Timidity to do this function. However, I'm not familiar with the software structure of Timidity. It's too difficult for me to rewrite
the source code of Timidity. Could you please give me any suggestion? Thanks.
寄件者： A. Zimmer <andrew.zimmer@...>
副本： 中天 吾 <ttkkyy@...>
寄件日期： 2011/12/6 (週二) 6:52 AM
主旨： Re: [timidity-talk] How to modify the playing duration from the command line
On Fri, 2 Dec 2011 21:58:26 +0800 (CST)
中天 吾 <ttkkyy@...> wrote:
> Does anyone know how to modify the playing duration of timidity++ from
> the command line?
A way do do this would be to first use TiMidity++ to output a wav file
and then use a competent audio player to limit playback to the specified