asiekierka / nitrotracker

A Fasttracker II style tracker for the Nintendo DS
68 stars 5 forks source link

Import sample loop points from file if present #95

Open rednorka opened 8 months ago

rednorka commented 8 months ago

Some WAV files store loop points for a file. It would be great to have it imported when present, or even store it when saving a sample from the program.

I'm not entirely sure about the technical side of this but it might be stored in a "smpl" chunk

deadpahn commented 8 months ago

Sort of related, sometimes playing with the loop points will guru crash NT. I've had it happen many times.

asiekierka commented 7 months ago

Can you provide an example of such a WAV file, for testing?

rednorka commented 7 months ago

Sure! I think I have a right example.

https://files.catbox.moe/sgmhfq.wav

This is a looped sample extracted from a DS game with VGMTrans. In this file the "smpl" chunk is located at the very end which has loop points stored in sample units. Some music-making software support this chunk.