Scriptnode graph new feature, am I dreaming...
-
No it's actually a good idea. I would implement it through a "learn mode" that once you enable it it will add all parameters that you touch to that list.
Setting values programatically (like precomputed values) is best achieved through the scripting layer - it's called scriptnode for a reason :)
-
@Christoph-Hart Youhou!!! Disneyland powa!!! :)
So I imagine it would be a new tile
About computing the values somewhere else I was referring outside of Hise… -
Alright, here's my go at it:
- Click on the "probe" icon
- Select all parameters (it will show the icon next to all enabled parameters).
- Click on the icon again, it will open a JSON object with all selected parameters
- Modify the values (or paste in a precomputed list). It allows JS expressions, so you can use variables & function calls (it's plain Javascript though, no HiseScript)
- Press F5 in order to apply this.
The function is also available as scripting call
DspNetwork.setParameterDataFromJSON()
so it can be used to create an internal preset system. -
@Christoph-Hart ouch you got busy Christoph! That rocks!
-
@Christoph-Hart Is this in the codegen_rewrite branch?
-
Will be in a short time when I commit the changes from the weekend...
-
@Christoph-Hart Is it stable or should we treat it as alpha?
-
100% alpha, but it compiles (at least on Windows and macOS, but Linux should be fine too) and you can play around with it.
-
@Christoph-Hart The scripting call availability is awesome
So is this safe to use in a slider callback instead of creating a graph parameter the old fashion ? -
@Christoph-Hart I try to compile on mac almost at every commit you've made since I've seen some mac compile fixes lately but with no luck
-
No, it involves allocation and object creation and is undoable, so it's not safe to use in a slider callback that might be automated...
-
@ustk said in Scriptnode graph new feature, am I dreaming...:
I try to compile on mac almost at every commit you've made since I've seen some mac compile fixes lately but with no luck
Oh OK, I'll check it on macOS then. It compiled last week so the changes I made since then shouldn't be to hard to fix.
-
@Christoph-Hart I'm checking again to be sure we're on the same commit...
-
[screeching intensifies]
-
@ustk This one should compile on macOS:
https://github.com/christophhart/HISE/commit/069e7a203561787c83c1b7a597aad17ad0f57e79
(at least it did here).
-
@Christoph-Hart That one instantly fails:
-
Ah try the
snex_workbench
project, the HISE projucer file hasn't been updated yet. -
@Christoph-Hart Oh I see, I'm trying...