Load/Save Table(envelope) shapes
There are lots of places that HISE lets me draw "wacky" shapes into tables (I'm thinking about the Polyshape FX for a start). Now Im not asking that we preset this drawing ability in a plug-in but it would be nice if I could draw some shape in HISE stand-alone, press some "export" button and have my shape saved, and then have an API call that would allow me to load a (named) shape into a table. So in my example if I had a PolyShape FX :
const var PolyshapeFX1 = Synth.getEffect("Polyshape FX1"); PolyshapeFX1.loadTableShape("mySavedShape01", index)
where index here would be 0 = Curve and 1 = Asymetrical Curve
- Where there is only one place to load a curve , like say an LFO modulator set to Custom then this index would be = 0
Christoph Hart last edited by
There's already a reference type that allows editing of Tables:
const var v = Synth.getTableProcessor("Velocity"); v.addTablePoint(...);
If you edit a table in HISE (so that it has a green outline), you can copy & paste the tables using either the Edit menu or Ctrl+C/V. It uses a intermediate Base64 endcoded String in the system clipboard like:
so the only missing link is a API method
then you can store the strings from your clipboard in your script or as JSON.
@Christoph-Hart great! nearly there then!
..problem is I cant address the asymmetrical curve table in a polyshape FX...
loadFromBase64()I just reached a situation where this would be very helpful.
Tod Slaughter last edited by
Found this and was looking for a way to add copy paste buttons to modulators. Is this available yet?
Natanr last edited by Natanr
Can we get an example snippet , To study how we can store tables and call them up with a button?
This post is deleted!
@Natan-Rezaei There's no simple way to do it. You have to edit the table points manually via scripting.
I have a load of predefined table shapes here.
@d-healey Thank You Sir David , You're The Boos
And A Big Thanks For Shapes , much Appreciated
Natanr last edited by Natanr
@d-healey Wow ,Thanks dear David , Youre Rock
Those shapes are amazing
Wondering , How it's possible to store some of the shapes into a combo box Or view port?
Thanks in advance
@Natan-Rezaei Just like in my button example, except you'll use a switch or if statement to select the shape function.
@d-healey Thanks Dear David , The Problem is I've zero exprience with adding items to combo box.
I Know how to add text , In left hand side , but cant figure out How to give the text Commands
@Natan-Rezaei You need to use the on control callback (or a custom callback) and get the value of the combo box (it will be a number, the first item will have a value of 1). Then you can use the combo box value in a switch or if statement to select the shape function you want.
While we are here ....
any progress on loadFromBAse64?
I especially need this for the polyShape FX
Christoph Hart last edited by Christoph Hart
@Christoph-Hart Thank you dear Christoph
But as a newbie , How we can use the New Feature?
@Christoph-Hart wow you're on a streak...