Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differing exports from .it and .mod files #51

Open
Corsaka opened this issue Mar 5, 2024 · 1 comment
Open

Differing exports from .it and .mod files #51

Corsaka opened this issue Mar 5, 2024 · 1 comment
Labels
enhancement New feature or request sample extraction Issues related to extracting samples

Comments

@Corsaka
Copy link

Corsaka commented Mar 5, 2024

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.

2024-03-05.13-46-55.mp4

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
Copy link
Owner

B0ney commented Mar 5, 2024

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.

@B0ney B0ney added enhancement New feature or request sample extraction Issues related to extracting samples labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sample extraction Issues related to extracting samples
Projects
None yet
Development

No branches or pull requests

2 participants