Malvineous / libgamemusic

Library providing a standard mechanism for playing and converting music used in DOS games.
http://www.shikadi.net/camoto/
GNU General Public License v3.0
23 stars 4 forks source link

[s3m-screamtracker] Implement Adlib instrument fine tuning value #4

Open ildar opened 6 years ago

ildar commented 6 years ago

$ ./gamemus /tmp/ADLIBSP.S3M -c dro-dosbox-v2:out.dro Opening /tmp/ADLIBSP.S3M as type File is definitely: ScreamTracker 3 Module [s3m-screamtracker] S3M: Adlib instrument has c2spd of 8300 Error opening music file: S3M Adlib instrument has fine tuning value - these are unimplemented! Please report this problem.

Malvineous commented 6 years ago

Any idea how the fine tuning values work? I don't think there's much documentation about them.

ildar commented 6 years ago

It's probably safe to drop this info

sagamusix commented 6 years ago

Finetuning works exactly the same way as it does for PCM samples - Doubling the c2spd also doubles the note frequency. At 8363 Hz, you get standard A440 tuning, at 16726 Hz you get A440 tuning transposed one octave up, at 8860 Hz (8363 Hz + one semitone) you get A440 tuning one semitone transposed up, etc...

adlib+pcm freq.zip