Mod Archive Forums

Music Production => MilkyTracker => Tracking => MilkyTracker Community => Topic started by: fuzion_mixer on August 06, 2017, 02:23:54

Title: Set panning envelope position?
Post by: fuzion_mixer on August 06, 2017, 02:23:54
It'll function like the Lxx command (set volume envelope position)...but affecting the panning envelope. I find it useful when I don't want to cram the effects (or command) column with commands like >x and Pxy. With this command, I am able to free up both columns for effects as well as panning it.

If you need a representation, reply here. I will provide screenshots of what it'll look like
Title: Re: Set panning envelope position?
Post by: Saga Musix on August 06, 2017, 13:22:34
I don't think MilkyTracker should invent new effect letters for the XM format that no other tracker supports (this has been done in the past by ModPlug and it was no good idea).
Lxx sets the position of all envelopes, not just the volume envelope. However, due to a typo in Fasttracker 2's code, the panning envelope position is only set if the volume envelope's sustain point is enabled. MilkyTracker currently does not emulate this behaviour so it never sets the panning envelope's position. I can look into submitting a patch for MilkyTracker to fix this behaviour.

Edit: I have whipped something up to make MilkyTracker behave like FT2, still need to test and submit it.
Title: Re: Set panning envelope position?
Post by: fuzion_mixer on August 07, 2017, 00:39:58
So how should the command be like? I'd like to test it out
Title: Re: Set panning envelope position?
Post by: Saga Musix on August 08, 2017, 00:03:36
I'm not sure what you mean - I wrote a patch for MilkyTracker (not in the repository yet) which will make the Lxx command behave like FT2 - meaning that if the sustain point of the volume envelope of your instrument is enabled, it will set the play position of both the volume and panning envelope to xx. If the volume sustain is not enabled, it will only set the volume envelope position as you already know it.
Title: Re: Set panning envelope position?
Post by: Saga Musix on August 08, 2017, 18:51:39
https://github.com/milkytracker/MilkyTracker/pull/116 Should be available in the next MilkyTracker update.