ModPlug Central

OpenMPT Development (Archive) => Feature Requests => Feature Request Archive => Topic started by: Rakib on February 05, 2009, 23:00:01

Title: Mathematical symbols in pattern properties
Post by: Rakib on February 05, 2009, 23:00:01
How about the ability to use mathematical symbols in the pattern properties, I know multplied with 2 and divided by 2 is already incorporated, but i was thinking about writing the symbols yourself where you write the row number.
Example:

64*4
128+32
256/4

By writing these symbols in the row number, it would automatically change the number for you. It's not always easy to know what 256+47 is.

Edit: Moved to the issue tracker: https://bugs.openmpt.org/view.php?id=1576
Title: [ACCEPTED] Mathematical symbols in pattern properties
Post by: Saga Musix on February 06, 2009, 12:05:01
Multiplying is already possible with "grow / shrink pattern". Parsing mathematical terms is rather complicated, and it can easily result in severe security flaws...
Title: Re: Mathematical symbols in pattern properties
Post by: Relabsoluness on February 06, 2009, 21:08:06
Quote from: "Rakib"How about the ability to use mathematical symbols in the pattern properties
Being able to enter mathematical expressions could certainly be useful and not just in pattern properties dialog. Perhaps something like muParser (http://sourceforge.net/projects/muparser/) could be taken into use at some point.
Title: [ACCEPTED] Mathematical symbols in pattern properties
Post by: Rakib on February 06, 2009, 22:33:40
As long as you set the valid input value between 4-1024, the security issue wouldn't be an issue.

Relabsoluness: I'm not talking about advanced mathematics, just "+ - /  *", just to make it simpler to input the values so I dont need to use calc everything I want to adjust the pattern properties.
Title: [ACCEPTED] Mathematical symbols in pattern properties
Post by: Rakib on September 16, 2009, 13:36:50
Found a nice program that can help you with this.

Enzo. find it here:
http://www.humanized.com/enso/

For a videodemonstration:
http://www.humanized.com/enso_demo.php
Title: [ACCEPTED] Mathematical symbols in pattern properties
Post by: Saga Musix on September 16, 2009, 14:15:27
Help us? It rather looks like it helps you. Programs aren't worth anything for a coder, libraries are. And this is a program, not a library.
Title: [ACCEPTED] Mathematical symbols in pattern properties
Post by: Rakib on September 16, 2009, 14:33:06
This was meant for primaly for the users of modplug, not the coders.