B0ney / xmodits

A tool to rip samples from tracker modules. Supports IT, XM, S3M, MOD, UMX and MPTM formats.
GNU General Public License v3.0
71 stars 5 forks source link

Sample Rate adjustment based on Fine Tune #24

Closed ferro4prez closed 1 year ago

ferro4prez commented 1 year ago

The current implementation doesn't take into account the Fine Tune setting in MOD files, and so samples are extracted in the wrong/unintended octave.

B0ney commented 1 year ago

Here's a nightly link with the sample rate adjustment: https://nightly.link/B0ney/xmodits/actions/runs/4127816315

I think, for the most part, you'll hardly notice any difference. Even with the fine tune adjustment, the frequency will most likely be 8363Hz.

It is worth noting that higher pitched instruments (hi-hats, cymbals, snares, etc) tend to sound a lot lower pitched. This was intentionally done by the sampler to get around the limitations of the hardware at the time. Doing this also allows the sample to be played at a much wider range without losing quality.