lookup tables
-
@ustk said in lookup tables:
@ulrik A small precisions needed:
- Do you need all resulting values at once or a unique value for a specific index?
- And are the array values pre-defined or dynamic?
That would change a bit how you want to handle it...
I need all calculated values at once
-
@ulrik said in lookup tables:
I need all calculated values at once
Here's your biggest problem. In script node you'll be able to get them one by one depending on the index value of a slider pack, not re-write an entire slider pack as output of the two. (Unless I'm not aware or smart enough to find a workaround)
Is the weighting knob changing at a modulation rate or just from a user UI knob? If it's the second then you might consider doing the computation in the UI script and just set one slider pack data connected to your network. Otherwise -> third party node, maybe...
-
@ulrik and what about this?
you can use twopack8_writer
-
@ustk Yes that's a nice way, however I would like to have everything inside script node, because I will make a hardcoded fx and use it in a FX slot, and it would make a lot of scripting to connect it to slider packs as well as all other knobs in the UI when inserted.
But if that is the best way I will go that path...I will think some more on this and decide later.
Thank you for feedback, it's much appreciated! -
@ulrik The solution I've posted above is entirely inside scriptnode. However a pack_writer is limited to 8 sliders... Can you go with two of them?
-
@ustk said in lookup tables:
@ulrik The solution I've posted above is entirely inside scriptnode. However a pack_writer is limited to 8 sliders... Can you go with two of them?
Oh, I didn't realize, do you have it as a snippet?
-
@ustk I will explain what I'm trying to do.
I have 3 bp filters, 5 templates, (all with different freq and q settings for the 3 filters),
There is 3 select knobs that can select any of the 5 templates like, knob1 - template 1, knob2 - template 4 etc..
I have a knob that sweeps through, and interpolate between the 3 selectors chosen templates and interpolate all values between them so meaning:
Sweeper value 0: template bottom, sweeping up to value 0.5 (here's center) so
Bottom freq1 => Center freq1, Bottom freq2 => Center freq2 etc.., same with the 3 bandwidth valuesWhen reaching the center and above, Bottom frequencies => Top freq etc
I have spent yesterday and a couple of hours today to figure out how to do this in script node.
If I could write some scripts (not in script node), then I could get it working, but in script node...uh.. -
-
U ulrik marked this topic as a question
-
U ulrik has marked this topic as solved
-
@ulrik that one is quite a network!
There might have been a way to place all those in a C++ node with hardcoded arrays -
@ustk said in lookup tables:
@ulrik that one is quite a network!
There might have been a way to place all those in a C++ node with hardcoded arraysYes that's possible, but I have no idea how to do that.
Next time I'll learn

