ready $ENGINE_PAR(s) from array
Hi All,
I cannot find a solution to this and I've been searching for a while. I want to store the $ENGINE_PAR built in variables in an array and then recall that array in set_engine_par kind of like this:
on init
declare slider $knob_filter_freq (0,100000)
declare !filterdata[2*5] := (...
{0} $ENGINE_PAR_CUTOFF, 1, "Cutoff", "NONE", "NONE", ...
{1} $ENGINE_PAR_PAN, 2, "Cutoff", "Resonance", "NONE", ...
end on
on ui_control ( $knob_filter_freq)
set_engine_par(!filterdata[0], $knob_filter_freq, -1, 6, -1)
end on
In this case specifically I'm using a string array and obviously this doesn't work. Is there a way to achieve this?
..
Comments
-
You need two different arrays for this task. One array will be a string array to hold the text, and the other will hold your engine parameters.
0 -
Thanks! This works. Many thanks again!
1
Categories
- All Categories
- 19 Welcome
- 1.4K Hangout
- 60 NI News
- 760 Tech Talks
- 4K Native Access
- 16.2K Komplete
- 2K Komplete General
- 4.2K Komplete Kontrol
- 5.6K Kontakt
- 1.6K Reaktor
- 372 Battery 4
- 831 Guitar Rig & FX
- 423 Massive X & Synths
- 1.2K Other Software & Hardware
- 5.6K Maschine
- 7.1K Traktor
- 7.1K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators