Community > Project / Coder's Corner

The Counting Riddle (sample offset question)

<< < (2/2)

Steffest:
Aha!

Thanks Saga Musix,
Without a doubt you have the deepest technical tracker knowledge on the planet, but of course you already knew that :-)

To boil it down to a simple ruleset for my own peace of mind:

For PT1 and 2 playback


* if a 9 command is present, advance the sample offset and set the start of the sample
* advance the sample offset again (but don't set start)
* at the next note, when no sample number is given, don't reset the sample offset (and do reset the offset otherwise) then set start of the sample and apply effects
That's why the offset gets tripled in some cases on notes with no sample number and a repeating 9 command.

The way XMPlay in PT1 mode handles this is a small bug IMHO, as I haven't seen this behaviour on any other player on any other platform.


 

Saga Musix:

--- Quote ---That's why the offset gets tripled in some cases on notes with no sample number and a repeating 9 command.
--- End quote ---
To be even more precise, it cannot only get tripled, but it can advance indefinitely (up to the end of the sample) if no instrument number is present. So a series of 901 effects with no instrument number will slowly sweep through the whole sample.

Navigation

[0] Message Index

[*] Previous page

Go to full version