Mod Archive Forums

Music Production => MilkyTracker => Tracking => MilkyTracker Support => Topic started by: mkie on October 23, 2024, 12:21:22

Title: MT's handling of finetune for MOD files?
Post by: mkie on October 23, 2024, 12:21:22
I wonder how exactly MT maps the finetune value in the instrument editor (-128...+127) to the allowed range of -8...+7 for MOD files. Is there any documentation about that?

I already found out (what one would expect):
-128 <=> -8
-112 <=> -7
-96 <=> -6
-80 <=> -5
-64 <=> -4
-48 <=> -3
-32 <=> -2
-16 <=> -1
0 <=> 0
16 <=> +1
32 <=> +2
48 <=> +3
64 <=> +4
80 <=> +5
96 <=> +6
112 <=> +7

but what about the values in between eg. what happens if I set finetune to an "odd" value like 51? Any formula for that?
Title: Re: MT's handling of finetune for MOD files?
Post by: leondustar on December 25, 2024, 15:08:30
TBH I don't know, but I guess the answer will be in the sourcecode.
I would guess some sort floor() or ceiling() depending on the direction perhaps?