Author Topic: [ACCEPTED] Mathematical symbols in pattern properties  (Read 4612 times)

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 912
  • Operating System: win7x64
[ACCEPTED] Mathematical symbols in pattern properties
« 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.

^^

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,208
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
[ACCEPTED] Mathematical symbols in pattern properties
« Reply #1 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...
» 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 Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 714
Re: Mathematical symbols in pattern properties
« Reply #2 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 could be taken into use at some point.

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 912
  • Operating System: win7x64
[ACCEPTED] Mathematical symbols in pattern properties
« Reply #3 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.
^^

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 912
  • Operating System: win7x64
[ACCEPTED] Mathematical symbols in pattern properties
« Reply #4 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
^^

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,208
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
[ACCEPTED] Mathematical symbols in pattern properties
« Reply #5 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.
» 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 Rakib

  • Crazy artist
  • ****
  • Posts: 912
  • Operating System: win7x64
[ACCEPTED] Mathematical symbols in pattern properties
« Reply #6 on: September 16, 2009, 14:33:06 »
This was meant for primaly for the users of modplug, not the coders.
^^