Syncing Custom LFO to Plugin Attributes
-
I have a custom-made LFO table where you can draw in points and remove them (not the built-in hise scripted table). How to scan through the X access of the custom LFO table to get the value and send it in real time to any plugin attribute?
-
@xander what do you mean by "custom made"?
-
@xander I imagine you can study how the table component works in HUSE and try to copy this. Iām pretty sure you can create your own custom UI components with the floating tile but I havenāt tried this.
-
@xander interested to see the table, I do think the Hise table needs updating with curve nodes...
-
@xander Really, it depends on the shape you are drawing. If it's all linear then a simple interpolation between XY points will give you the value for each position.
Now if you are drawing curves, it's not the same can of worm. If the curves are actually made from a function (cubic, quadratic, or any spline...) then you can get the value by resolving the functions.Otherwise you might be in big troubles...
There still is a solution but I won't recommend it for setting attributes. I added it just for UI purpose. it's
Path.getIntersection()
.
A function that returns the intersection point between the path and a virtual line. but relying on this for attribute would be dirty as hell.My recommendations:
- Stick with straight lines
- Or derive your curves from a real resolvable function
Now, if your curves are cubic between points, you might find the formula to get a point coordinates.
Just type "get point along cubic spline" in your favourite search engine -
@ustk We figured it out, but I'll keep those things in mind, thanks!
-
@DanH It's super secretš¤«- It is similar to Serum's