|
Atari coding BBS
Re: How to calculate MOD time? |
Posted by: ggn
|
Jan,17.2013-11:25
|
Just to kick off the discussion... ;)
We all know that a classic .mod file has patterns that have up to 64 steps and a list that has the order what patterns to play in sequence. So, I suppose a first approach would be:
- find the number of steps per pattern (might be less than 64 because of pattern jumps)
- convert to time each step of the pattern (because there might be temp changes)
- calculate how much time each pattern takes
- traverse the pattern sequence and add each pattern's time to the total time counter.
There should be an easy method to convert tempos to time, but I guess we'd need to read of a few tracker manuals to see what those speed settings translate to. Of course there are some other bonus points like the artist defining more patterns in the sequence than used (he/she might be doing a pattern jump), i.e. not a clean module.
So in summation I'd suggest grabbing a few tracker manuals and I guess the libmikmod .mod loader so you can avoid doing work already done and documented.
P.S. I guess that this is for mxplay?
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|