@Christoph-Hart That's what I do for signals. But here I just want to make a calculation based on a knob input, and output the result.
For instance, I'd like to input a time in ms and output a frequency value in Hz to set the oscillator.
There might be another way than using a jit, but I don't see how...
Untitled.jpeg
float TimeIn = 0.0f; float FreqOut = 0.0f; void setFreqOut(float newValue) { } void setTimeIn(double newValue) { TimeIn = (float)newValue / 1000.0f; FreqOut = 1.0f / TimeIn; //setFreqOut(); }There might be a better way for this example, but not necessarily for another one...
(I know it looks weird but it's just for the sake of the example)