Page 1 of 1
Module Length
Posted: Fri Dec 28, 2007 12:16 am
by Foz
I don't suppose that GetModuleLength or something similar could be added for the next release?
I've checked the ModPlug dll and the function is there, but I can't access it through the PB framework - or I can't find it.
Posted: Sat May 09, 2009 8:41 pm
by Tjomp
+1 on this request.
There are PB commands to get and set current position in the module, but no way to get the total length of the song. That makes the SetModulePosition command useless are there is no way to know what scope of input to give it.
Best regards
Tomas
Posted: Sat May 09, 2009 8:59 pm
by djes
If I remember correctly, soundtracks files don't have such information. Maybe in the newer formats (s3m for example), but I'm not sure. That's because modules have "looping" and "jump" functions, so a pattern can be repeated endlessly, and a song never end, so a song length information is useless. I have friends that are kind of specialists, I'll ask them.
Posted: Sun May 10, 2009 12:00 am
by Tjomp
You are indeed right about that. A songs length can not be dermined in Minutes or seconds due to loops and jumps. But I allways thought it was possible to read out information about how many patterns was defined in a module.
Please report back with what you find out. And thanks for replying.
Posted: Sun May 10, 2009 2:11 am
by djes
Posted: Mon May 11, 2009 11:08 pm
by KarLKoX
djes wrote:If I remember correctly, soundtracks files don't have such information. Maybe in the newer formats (s3m for example), but I'm not sure. That's because modules have "looping" and "jump" functions, so a pattern can be repeated endlessly, and a song never end, so a song length information is useless. I have friends that are kind of specialists, I'll ask them.
You are right, i wrote a full module engine with PB and this took me a lot of time to find the better way to play wired tricks used by some sountrackers, it isn't perfect (still need allow full backward replay) but when you find how to handle them, then, calculating the song length is not that hard

Posted: Tue May 12, 2009 8:19 am
by djes
I don't remember this old demo showing a great tune with a soundtracker patterns view, going an coming back as the "jump" options was used (and abused) by the composer
