Author Topic: .IT old style volume envelope  (Read 809 times)

Offline TheRealByteraver

  • Inspired artist
  • **
  • Posts: 52
  • Operating System: Windows 7 Pro 64 bit
.IT old style volume envelope
« on: November 16, 2019, 22:13:02 »
Hi! If I'm not mistaken, Impulse tracker 1.x saves the volume envelope as a list of about 200 volume levels rather than saving the envelope node coordinates. At least it seems so looking at the old instrument format in ittech.txt. Now that I look further into it, IT v1.x does not seem to support panning or pitch envelopes. That means that the 25 node points saved per instrument after the 200 volume levels are also a description of the volume envelope, meaning the volume envelope is saved twice in the file - which is a bit odd. Can anyone confirm this? Thanks in advance.

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,792
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: .IT old style volume envelope
« Reply #1 on: November 17, 2019, 11:49:32 »
You can completely ignore the level data, yes. I assume that it exists purely as a speed-up (pre-computing the linear interpolation equations rather than having to re-calculate them on every tick) for the player, and there is no good reason that it exists in the file itself, apart from making it easier to directly dump IT's internal memory structures into a file.
ยป 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 TheRealByteraver

  • Inspired artist
  • **
  • Posts: 52
  • Operating System: Windows 7 Pro 64 bit
Re: .IT old style volume envelope
« Reply #2 on: November 17, 2019, 12:20:55 »
Thanks for clearing that up! Much appreciated, as always.