Connexion port in core.jit
-
@Christoph-Hart I know how to create a slider in a jit node.
But is there a way to create a connexion port for controlling other nodes? -
just slap a
core.peak
node after it and it will take the output of the jit node as mod source. -
@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...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)