milkytracker / MilkyTracker

An FT2 compatible music tracker
http://milkytracker.github.io/
Other
1.7k stars 160 forks source link

Rendering to wav/sample prepends silence to audio #259

Closed caseyjoy closed 2 years ago

caseyjoy commented 2 years ago

OS: Ubuntu 21.04 Milkytracker versions: 1.03, latest Github source build Issue: When rendering to a file or sample, a small amount of silence is prepended before the audio.

According to pailes in a thread I found on modarchive, this is because it's recording an invisible row that sets the speed (see 2008 post below), and this may still be the case.

While this was originally deemed not to be a bug, it should probably still be addressed due to:

Some relevant thread excerpts from modarchive:

(2008) [no bug] Export bug? emillo [...]exporting to wav seem to add unwanted space at the beginning. Milky adds 20 milliseconds of silence at the beginning[...] pailes That's actually not a bug. The song starts playing after the first invisible row has been completed. Which means the tick counter starts at zero and when it reaches the initial speed setting the song will start playing.

(2010) HD Recorder: adds silence at beginning of exported .wav file. (2010) Timing out of sync in exported .wav-File jonobo [...]MilkyTracker-HD-Recorder is adding silence at the beginning of exported .wav-File (at least as far as i found out - gonna ask others on IRC about that and point them here).[...] Saga Musix [...]Milky indeed appears to prepend a few samples of emptiness[...]

(2012) Delay when rendering 8ch [...]When rendering to wav (file or sample) there's a short 20 ms gap before the audio starts.[...] raina I support this. I don't see why the leading silence couldn't be omitted.

(2021) Re: My Milktracker Wish List MisthaLu When rendering to wav, Milkytracker adds a break or pause in the very beginning. Why? This makes it troublesome to play the wav in a smooth loop. Can this pause please be removed? Thanks.