You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IMS loader seems to contain some code that is questionable in more than one way.
First off, from my observations, the sample headers are exact replicas of SoundTracker sample headers, including the 22-char sample name. libxmp instead truncates the sample name to 20 characters and assumes that a 16-bit finetune value follows. The code notes that this finetune value causes some "squeaks" in a specific track - no wonder, because that track contains one particularly long sample name that overflows into this "finetune" field. The field that normally serves as finetune in ProTracker MODs is left as "unknown" instead. Note that I found no IMS files where this field is ever non-zero, so either this feature is unsupported or simply unused.
The "zero" field appears to be song restart position.
I couldn't find any files with notes <= 12 but it would seem weird to me that both note values 0 and 63 would serve as "no note", A quick reading of the Wanted Team player of this format seems to confirm my suspicion (when loading the effective period from label lbL0007CC, the first entry is 1712, a valid period two octaves below middle-C). Note that the lack of finetuned periods in this table would also most likely confirm that there is indeed no support for finetune in this format.
The text was updated successfully, but these errors were encountered:
sagamusix
changed the title
(Probably?) incorrect sample header structure in IMS loader
(Probably?) incorrect sample header structure in IMS loader (and more)
May 7, 2024
The IMS loader seems to contain some code that is questionable in more than one way.
First off, from my observations, the sample headers are exact replicas of SoundTracker sample headers, including the 22-char sample name. libxmp instead truncates the sample name to 20 characters and assumes that a 16-bit finetune value follows. The code notes that this finetune value causes some "squeaks" in a specific track - no wonder, because that track contains one particularly long sample name that overflows into this "finetune" field. The field that normally serves as finetune in ProTracker MODs is left as "unknown" instead. Note that I found no IMS files where this field is ever non-zero, so either this feature is unsupported or simply unused.
The "zero" field appears to be song restart position.
I couldn't find any files with notes <= 12 but it would seem weird to me that both note values 0 and 63 would serve as "no note", A quick reading of the Wanted Team player of this format seems to confirm my suspicion (when loading the effective period from label
lbL0007CC
, the first entry is 1712, a valid period two octaves below middle-C). Note that the lack of finetuned periods in this table would also most likely confirm that there is indeed no support for finetune in this format.The text was updated successfully, but these errors were encountered: