Author Topic: Remove silence from a .mod file  (Read 2655 times)

Offline Avanaboy

  • Shy artist
  • Posts: 3
Remove silence from a .mod file
« on: December 18, 2011, 20:27:20 »
Hi guys,
I've a very nice xmas .mod file, but It have some seconds of silence in the end.
Is there any way to remove these seconds from the mod file ?

Thank you very much !  ;)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,312
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: Remove silence from a .mod file
« Reply #1 on: December 18, 2011, 20:45:48 »
Depends on what you really want to do. As MOD files don't have variable pattern lengths (as apposed to XM and IT files), you could place a pattern break command (D00) in an effect column somewhere in the last pattern where the silence begins. The question is of course, why do you want to get rid of the silence? If you just want to shorten it for your personal pleasure (i.e. because you want to play it in a media player), I'd recommend to use XMPlay to play modules anyway, as it automatically trims ending silence.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Avanaboy

  • Shy artist
  • Posts: 3
Re: Remove silence from a .mod file
« Reply #2 on: December 18, 2011, 20:59:29 »
I'm coding a Christmas demo , and offcourse I've to loop a mod.
Looping a mod with the silence ins't a good thing :P

So , what I've to do exactly ? :)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,312
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: Remove silence from a .mod file
« Reply #3 on: December 18, 2011, 21:03:35 »
In that case, simply put a D00 effect at the position in the pattern where the module should restart, like this:
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Avanaboy

  • Shy artist
  • Posts: 3
Re: Remove silence from a .mod file
« Reply #4 on: December 18, 2011, 22:10:48 »
In that case, simply put a D00 effect at the position in the pattern where the module should restart, like this:


Thank you very much !
It is working now  ;D