ModPlug Central

OpenMPT Development (Archive) => Feature Requests => Topic started by: Paul Legovitch on January 16, 2010, 09:01:23

Title: set envelope position in MPTM
Post by: Paul Legovitch on January 16, 2010, 09:01:23
In MPTM format instrument envelopes can be enabled/disabled by the S7x IT commands.
To have more control, would it be possible to add a command to set the envelope position which is already available with Lxx in XM format ?
This is a great command that I would love to use in the MPTM format.

If possible I'd like to be able to control the three envelopes independently, perhaps assigned to :
1xx : set volume envelope position
2xx : set pan envelope position
3xx : set pitch/filter envelope position

And it would be excellent if it could work with the #xx command to extend the value and control lengthy envelopes.
Title: set envelope position in MPTM
Post by: Saga Musix on January 16, 2010, 11:34:55
Well, there currently no letter codes left... If the MPTM format already supported more commands, a bunch of other commands would already have been added.
Title: set envelope position in MPTM
Post by: Paul Legovitch on January 16, 2010, 13:18:48
What about 1xx, 2xx, ..., 9xx ?
The XM format uses both numbers and letters, why is it that the IT/MPTM format cannot do that ?
Quote from: "Jojo"If the MPTM format already supported more commands, a bunch of other commands would already have been added.
I'm curious, what commands ?
I have also another question/request : is it possible to switch (in track) between pitch and filter for the third envelope ? I think instrument control commands S7D, S7E and S7F are still available (or are they ?).
Title: set envelope position in MPTM
Post by: Saga Musix on January 16, 2010, 13:24:11
Due to various limitations that are currently present in the program, it's not very easy to just add number commands to the MPTM format, I think, but I actually don't know how much has to be changed to make it work. And with 0xx to 9xx, we would get another 10 commands, which might not be enough in the future - so instead, focussing on two-letter commands (like Renoise - hint: this is not related to the MPT vs Renoise discussions going on in the general chatter forum) would probably a better thing to do, instead of extending the one letter commands until you need 100 different keys to access them all.
Title: set envelope position in MPTM
Post by: Paul Legovitch on January 16, 2010, 13:35:34
I see, and two letter commands would be great of course.

What about switching between pitch and filter for the third enveloppe, this would only require 2 fixed commands like :
S7D : set third envelope to pitch.
S7E : set third envelope to filter.
Possible ? I'm working with the third envelope as a sort of arpegiator atm and very often it sound as good for both pitch and filter, so switching in the pattern would be cool.
Title: set envelope position in MPTM
Post by: Saga Musix on January 16, 2010, 13:45:49
well, the latter request is possible, I guess...
Title: set envelope position in MPTM
Post by: Paul Legovitch on January 16, 2010, 14:00:22
Thanks for answering, it doesn't have to be put too high on the todo list either, but that would be cool yeah !
Title: set envelope position in MPTM
Post by: Saga Musix on January 18, 2010, 22:25:26
Considering the latter request, I think some more thinks have to be clarified, now that I've had a brief look at how this could be implemented.

The question is:
- Should the envelope automatically be turned on when calling S7D/E?
My thoughts on this were: There is a separate command to turn off the pitch envelope, and there's one to turn it one. So two commands could actually be combined in one, so I'd say that the pitch envelope should also be turned on when S7D/E is called.
Title: Additional Commands
Post by: Really Weird Person on January 19, 2010, 00:02:20
You can continue on the number row (since the pound sign (#) is used.
Title: set envelope position in MPTM
Post by: Saga Musix on January 19, 2010, 06:30:55
As so often, you don't make sense. You should probably have a look at the code before telling me what works and what not.
Title: set envelope position in MPTM
Post by: Paul Legovitch on January 19, 2010, 09:37:42
Quote from: "Jojo"so I'd say that the pitch envelope should also be turned on when S7D/E is called.
That's the best way to do it if these commands are temporary (can't be triggered before the note like SAx or SFx) and need to be effective in one row.
Now it doesn't really matter if you are planning to make S7D/S7E carried on like SAx (which could be great since it would allow to change the enveloppe in track then replay any pattern with this other envelope).
Title: Additional Commands
Post by: Really Weird Person on January 19, 2010, 16:26:32
Quote from: "Jojo"As so often, you don't make sense. You should probably have a look at the code before telling me what works and what not.
You have a point there, Jojo. Perhaps I don't make sense (which is probably why features that I request are generally not implemented) and I have not seen the code in a long time.
Title: set envelope position in MPTM
Post by: Saga Musix on January 19, 2010, 16:31:44
Paul, making it non-temporary would be confusing and too complicated anyway.
Title: set envelope position in MPTM
Post by: Paul Legovitch on January 19, 2010, 17:00:07
I thought so, since all S7x controls are temporary that's only logical. And there's always the possibility to not add the instrument number for further notes.
Then please implement exactly like you said : S7D and S7E turn the third envelope on.
As for the description in the note properties (command list) I'd suggest :
S7D : Force Pitch Env
S7E : Force Filter Env
Title: set envelope position in MPTM
Post by: Saga Musix on January 19, 2010, 18:01:26
Quote from: "Paul Legovitch"And there's always the possibility to not add the instrument number for further notes.
That's exactly the way it's meant to be used.
Title: set envelope position in MPTM
Post by: Paul Legovitch on January 19, 2010, 20:48:28
It took me a minute to realize that your comment was in the quote ! :P

Yes you're right. And sometimes it's not that simple : multiple parameters are dependent on the instrument number being added or not and you can't choose which one you want to be carried on or not, they all are.
As always with trackers, there is a lot of control but a limited number of command in one row, so choices have to be made when complexity arise. That's why I like permanent channel commands that can be added here and there to modify the whole track (like Mxx, Xxx, Zxx, some sound control S9x commands, etc). S7x commands that deals with NNA or envelopes could have been permanents in the IT format, I would'nt have minded !  :D

Off Topic (kinda) : I've just noted that for multi-sample instruments, when not adding the instrument number, the sample is no longer the last one used (like in modplug) but the correct sample mapped to the new note. That's a great correction !