I always thought it would be really useful to be able to multiply parameters together (e.g. have a "detail" repeating automation item, and then a "macro" envelope that multiplies it for variation). Looking for feedback or ideas on how to make this JSFX easier to use (I'm totally new to JSFX so ways of simplifying the code also appreciated)! Partially inspired by the automation/expression-combining features of Bitwig.
Source:
https://raw.githubusercontent.com/al..._Combiner.jsfx
Later output params can reference earlier ones, so you can build up more complex expressions (like "a = x * y; b = a ^ val1; c = max( x, b );" type of stuff.)
Initially I was planning on implementing a text expression editor - the pain of implementing a parser in an unfamiliar language probably would have stopped me, but also the fact that there's no native JSFX text fields. I also considered a visual waveshaper-like approach to parameter shaping, but couldn't think of a natural way to let it combine multiple inputs (plus, more work!)