Scriptnode, stuck with set value
-
@Christoph-Hart Is there a way to directly set a value, not using the 0-1 based representation but the actual value we want?
I want to set a time value that is the 1/4 cycle of a frequency:
Freq range is 0.01Hz => 5Hz, so the 1/4 cycle should go from 25000ms to 50ms.
Obviously, values in between like 2.5Hz should be 100ms, 1Hz is 250ms...The problem is that if the values are good at both extremes, it's a total mess in between.
I played with the skew to at least have the middle pos good (2.5Hz=>100ms), but it didn't help for the other values anyway...
I tried some basic maths for mapping the value to 0-1, used JIT node, simpleJIT, math nodes, connection expressions... I can't make it to work...Could you please put me on track?
HiseSnippet 1403.3ocyX87aaTDEdVGuIwtoPPDDbCqdJUpMxNIEnBIrI+TVDmZEmDZgCUS1ch8P1clkcGmD2Jj3.f3FW3B7O.RbfebDPH0+A5odAwMtvE.o7GPkf4syZui8tIw3pRvW7NuYdy98duu4alYq6ysHAAbejQts63QPFSY1nCSzZ4VXJCUcEocS6.usIABzRc7vAADajgwXqCcajKKJ72IkWB6fYVjXSHztbpEYCpKUDasdk2h53rF1lrM0UazKVopEmsL2g2VBkwLKh7vVGfaR1DCCKiIxX7UsoBteCAVPBjiYItcmFs3GwTieWZ.cOGBznDpgbhTlQK2h5XWuaXFfPFYqGGzioB5YLqQso8rGG7SG1QgXOzyAFY5GRY6CRkzgTQMHsF2wFl.XHIgGRCcYUnSBBtcaGrnejAkfnNnbVeHqJSPXATQG8RzEJbeNy5TgUqzwalTvqrP8zFuQE+Kat596SrDwfMq4Z2dTqzkREJoRDMRl6xa1vxm5Ijue.HSE0rvZ2tTe.RYFY70lqxZRYj4r7IRnsRf2lDwQb+Cl8JtcjqauxUe8Kme+1LKHkWvym3g8Iayq6f6La.10ygrkzsqUXOGt0AMn2ib072Oet7eP9BZNEBxkfQLqUKLiQbBRNLX0KS3yclk01cOh+0JbH1oc77kXA7DCWNjypxnha4QhFVewPWyR4BMTFasGnhMkBkXKdaAk0rFV3SOFYXtYa2FRcHKxxQQqzlQFD3ZX6hPafg1fvrCa72xeQcVBZaD0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Y38bTBBn+APlN7kE
-
@Christoph-Hart I thought using the formula directly in the connection expression would help (
1/input/4
),
but as soon as you write something like1/input
, Hise crashes instantly