Load/Save Table(envelope) shapes
-
@Natan-Rezaei There's no simple way to do it. You have to edit the table points manually via scripting.
HiseSnippet 1206.3oc4X80aaaCDmJNpn1cNXcnaXOJDrGbPyLrcSx5PwPchyefwhSLhRaGvdnfQhNlHRjZTTdyMHeW1Gk87dZeT52fsiTRVxoZN1oIaCXBFI9Ndm3O96Nd2kzWvcHggbAxn7oiCHHiOwzdLSNryPLkg5tKxXEyd3PIQXEqZmwA3vPhKxvnzAJEFkWFoed+K2A6gYNjLUHzq4TGxgTepLSa+1eO0yaerK4TpeNq2ncWGNqC2iGA3ojYCT.14B74jivJyVxDY7f8boRtvVhkjPjwx6vcGaOj+yrX6eMMjdlGQIzDYCunX06y8bUHV8cTmgTO29om6PDxvreFKTJlEdhYOpKch9L13S0KXk4Qd9vXoYAul2R3YjCdKGCuGaZ6HnAxrUTX6QlcYPfZ.FBA4gUrsnk98Rlc3fELYce7Ej8EfvDOpsUiFqasYiFq8hpUpVABDgRqQXg0qIdbGpbbOtajGFNcMs9NKcNR8yIxSwvAZBLpsZp0VYluZ7ajx7nLh0fHlijxYVb1NQRIm0TgIA2qlC2Ofy.zsNrudQj0pV4xpUJSGXUKU1BdtL9WpmODZ0EjPhrl9PLCqBSANmx.qW2J6S8MWTeal9oQ8meC9hccu19VeS0OZs1KztcU0JWoIqz3DvvcRokZqlPXqtlBDIzVGrm2Yv0jZWmOiY8+ddu0+c38leD7dZLa94uVyl+Zki+xQZGwkjiY0VqxkUJW4pJVWeoACJbsjWlGQT3xpBfhY4XMVj+YDQZnI0PnRvzkZdv7UpwIlWxYHm0kQkGGPRjyJF0rfhQnDhE91q5tKVhU0mRzA1EPDRpBNF6RFAE9iqVU1bWR3ERd.TCeRz.frTu5JI0xhYeD0U4PRpL5Wlzc32baOdhP6ers.6R4GH3QAwXMDOhzk0WmGpJ5gVncpUtc5WyuSVjadm9v5yPWhzD27sNT8KSV.BxSUiVUGlEBY746mt.8SZTX+jBCgyIberYepzYXw3coBvKjJbei2jtyUM2av.hiLCrKat+ObaaEe6fxJwP4Ql1P0Uc6PMP9Bsr0afbDqCHLhPW7ZFSM8Gy6TSAy8TSG6Hgs+TAlEFvCm5EaS7omB2JByq7Ugvr.je5DUTNu9Nbrnvkd+K2GNjE5iMVFIzoKa6yiXxoROJcqFOZ5aM4rufYkV9egQ4t6u58wWonz7Qs2vzlkSwnM0OvirGaDzVFznv3mAE0Gfi7joZmNIuGmwCFxYTm7Y.mPjB54mSD4wdgGnskRnobllmz9DhGAmOa9qZeHjEhE.OQt+4hYEu9RyX3ZotYZcOUg+V9WL7vXbWwLcjJMh+byBFT+lgKToPOC1zguQPWekSYw4cINzyHdSGYfxZI6o9cnmdvXSymsU8oeFcr5mO8cGN9vM5jJO3oJkeq83CG+tiQ2Yg36jlgk9+YyvS3QRJ67dX3NML8j4QQ91POHGBfDFi3AajowRp9HwxMTxwMgXtZg+DdRVroR1HYwloK9Oxd3icD725DOus55yC0ZfyMS++cnrYOkrUSjdF7XtwGZc7VGGEY+0.6TrGsVXOd1B6wFKrGatvdr0B6w2rvd77Y3gpO81QRte7UOPQ+8hKeXrGSUKQmki9KPSPOw+
I have a load of predefined table shapes here.
-
@d-healey Thank You Sir David , You're The Boos <3
And A Big Thanks For Shapes , much Appreciated :) -
@d-healey Wow ,Thanks dear David , Youre Rock :)
Those shapes are amazing <3Wondering , 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 Thank you dear Christoph
But as a newbie , How we can use the New Feature? -
@Christoph-Hart wow you're on a streak...
-
@d-healey said in Load/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0afbDqCHLhPW7ZFSM8Gy6TSAy8TSG6Hgs+TAlEFvCm5EaS7omB2JByq7Ugvr.je5DUTNu9Nbrnvkd+K2GNjE5iMVFIzoKa6yiXxoROJcqFOZ5aM4rufYkV9egQ4t6u58wWonz7Qs2vzlkSwnM0OvirGaDzVFznv3mAE0Gfi7joZmNIuGmwCFxYTm7Y.mPjB54mSD4wdgGnskRnobllmz9DhGAmOa9qZeHjEhE.OQt+4hYEu9RyX3ZotYZcOUg+V9WL7vXbWwLcjJMh+byBFT+lgKToPOC1zguQPWekSYw4cINzyHdSGYfxZI6o9cnmdvXSymsU8oeFcr5mO8cGN9vM5jJO3oJkeq83CG+tiQ2Yg36jlgk9+YyvS3QRJ67dX3NML8j4QQ91POHGBfDFi3AajowRp9HwxMTxwMgXtZg+DdRVroR1HYwloK9Oxd3icD725DOus55yC0ZfyMS++cnrYOkrUSjdF7XtwGZc7VGGEY+0.6TrGsVXOd1B6wFKrGatvdr0B6w2rvd77Y3gpO81QRte7UOPQ+8hKeXrGSUKQmki9KPSPOw+
The snippet is not working. Nothing happens. can I get an updated snippet?
-
@Lindon Is it possible to script a 'Save Table Shape' button and a 'Load Table Shape' button for simple porting of shapes between modules in the plugin?
-
@DanH Could you explain "between modules" please?
If you want other modules to change at the same time you could simply link them
But if you actually want to store different shapes, then you could use exportAsBase64 and restore I guess (never tested)EDIT: in fact, that was the whole purpose of this thread...
-
@ustk So for example, if I have two seperate LFOs in a plugin and I want to copy the shape from one to the other one.
I think though what I really want is the ability to save an LFO shape in one instance of a plugin and be able to import that shape into a different instance of the same plugin.
Does that make sense?!
I have been trying to sript the buttons using those API's but I don't quite know how to make it work
-
@DanH Ok so you have to use the fileSystem and save/restore the base64 shape to/from the external file you've created
https://docs.hise.audio/scripting/scripting-api/filesystem/index.html -
@ustk Thanks mate, will take a look! No doubt I will be messaging you again soon! :face_with_tears_of_joy:
-
What's wrong with copy/paste?
-
@d-healey Thanks David, this is great for working within Hise, but I want the User to be able to do the same within the plugin... and even across plugins if possible!
-
-
@d-healey Do you think it would be possible to create a mini preset browser for it like this https://forum.hise.audio/topic/3273/custom-mini-preset-browser-example-using-filesystem-api