Mathematical symbols in pattern properties

Started by Rakib, February 05, 2009, 23:00:01

Previous topic - Next topic

Rakib

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
^^

Saga Musix

Multiplying is already possible with "grow / shrink pattern". Parsing mathematical terms is rather complicated, and it can easily result in severe security flaws...
» 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.

Relabsoluness

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 could be taken into use at some point.

Rakib

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.
^^

Rakib

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
^^

Saga Musix

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.
» 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.

Rakib

This was meant for primaly for the users of modplug, not the coders.
^^