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

Differing exports from .it and .mod files #51

Open Corsaka opened 4 months ago

Corsaka commented 4 months ago

It's worth nothing that I'm using schismtracker, a modern implementation of impulse tracker, for my .it file.

I used xmodits to export the audio files from the song "apoplexy.mod", as well as my "apoplexy-stereo.it" edit. The edit was created using the exact same instruments from the original .mod file. However, upon exporting these, the .it exports have a halved sample rate and are pitched down by an octave. I've attached a video that also shows this comparison.

https://github.com/B0ney/xmodits/assets/23699128/d49aab92-f36c-4a35-bb5a-70339e8c05f9

I've also uploaded both files to Google Drive for analysis, as I assume the problem exists within the files themselves. This isn't a pressing issue, as I can get the original samples from the .mod file, but it's likely worth looking into.

B0ney commented 4 months ago

Interesting.

Technically, the exported .it version has the correct sample rate. It's just that the frequency for exported .mod files are always doubled.

I did this because samples from mod files are always ~8000Hz, which sound low-pitched, but doubling it to ~16000Hz produces desirable results.

I think I could do the same thing for impulse tracker (and the other formats too). The frequency in the sample header represents C-5, so doubling it to C-4 should make things more consistent.

I'll do some experiments when I have time. But I think I could try to get the sample rate for all formats to match C-4.