Parameters arguments as expressions
Posted: Tue Feb 06, 2018 11:43 pm
I've seen that you fulfilled my request about allowing globals to expression and i'm VERY grateful.
While I was enjoying this feature and struggling with programming some modifier, i thought: why can't we allow expressions in parameters?
if you print "50 * 2", you'll get a scale(100). If you print "50 * halfbeat", and halfbeat global is 10 you'll get scale(500).
I'm suggesting this implementation: you right-click on some modifier, i.e. scale and there's an option called "Make expression". You click it and your parameter field turns from number input (with up-down keys) to string input (like text, or expression parameter itself). Previous value stays in place. So, if you had "scale: 50", where 50 is number, you get "scale: 50" where 50 is expression. If you have your parameter as expression, "Make expression" option in context menu will turn to "Make numbebr"
x in expression would refer to previously caught value (like expression parameter itself).
This partially covers globals in parameters: viewtopic.php?t=1072 (except my suggestion of mapping parameters to any source).
While I was enjoying this feature and struggling with programming some modifier, i thought: why can't we allow expressions in parameters?
if you print "50 * 2", you'll get a scale(100). If you print "50 * halfbeat", and halfbeat global is 10 you'll get scale(500).
I'm suggesting this implementation: you right-click on some modifier, i.e. scale and there's an option called "Make expression". You click it and your parameter field turns from number input (with up-down keys) to string input (like text, or expression parameter itself). Previous value stays in place. So, if you had "scale: 50", where 50 is number, you get "scale: 50" where 50 is expression. If you have your parameter as expression, "Make expression" option in context menu will turn to "Make numbebr"
x in expression would refer to previously caught value (like expression parameter itself).
This partially covers globals in parameters: viewtopic.php?t=1072 (except my suggestion of mapping parameters to any source).