Author Topic: XM format question: Initial Global volume vs Global volume  (Read 2976 times)

Offline LPChip

  • Administrator
  • *****
  • Posts: 5,123
    • http://lpchip.nl
  • Operating System: Windows 10 Pro x64
XM format question: Initial Global volume vs Global volume
« on: January 27, 2012, 14:44:25 »
I found something perculiar today and I'm wondered how this exactly works.

I opened an XM file and saw that the initial Global volume in the pattern tab is set to 128. This particular song fades out at the end but they forgot to reset the volume to the original at the beginning, so on a loop, the song stays silent.

So I thought, I'll add a G80 command to get that sorted out. As XM isn't my normal format, The IT command Vxx didn't work. So I double clicked the effects list to find it's Gxx. Strangely, I could only use the slider up to 40, which is value 64, not 128.

I realize this is a limit in the XM format. This occurred to me when I manually set it to G80 and it was simply being ignored. The G40 does sound the same as the initial global volume setting of 128, which makes me wonder. Does XM format only goes up to 64, so that value is just doubled because the interface is like that, or is everything above 64 seen as 64?

I notice the volume changes when I change this slider.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,333
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: XM format question: Initial Global volume vs Global volume
« Reply #1 on: January 27, 2012, 15:42:27 »
The global volume on the general tab is indeed doubled for the XM format to display the same value throughout all formats. It would actually be a good idea to halve the value for XM and S3M on the general tab, so that the value on the general tab corresponds exactly to the pattern command values.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline LPChip

  • Administrator
  • *****
  • Posts: 5,123
    • http://lpchip.nl
  • Operating System: Windows 10 Pro x64
Re: XM format question: Initial Global volume vs Global volume
« Reply #2 on: January 27, 2012, 16:46:41 »
The global volume on the general tab is indeed doubled for the XM format to display the same value throughout all formats. It would actually be a good idea to halve the value for XM and S3M on the general tab, so that the value on the general tab corresponds exactly to the pattern command values.

Yeah, I like that idea. Now its a bit confusing.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,333
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: XM format question: Initial Global volume vs Global volume
« Reply #3 on: January 28, 2012, 14:28:46 »
The behaviour has now been changed so that the global volume slider ranges from 0 to 64 for XM and S3M files.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline LPChip

  • Administrator
  • *****
  • Posts: 5,123
    • http://lpchip.nl
  • Operating System: Windows 10 Pro x64
Re: XM format question: Initial Global volume vs Global volume
« Reply #4 on: January 28, 2012, 14:41:00 »
Awesome! :D You're the best.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs