Welcome to the new and improved Native Instruments online community. Join our active forum of 40,000+ members for discussions and much more.
Basic group effects question

jjas7
Member Posts: 4 Member
I'm still learning...
I want to have this effect apply to all groups all the time. Do I use a while statement?
on init make_perfview set_script_title("FX") set_ui_height_px(350) declare const $SK_SLOT := 0 declare const $FX := -1 declare const $GROUP := 0 declare ui_knob $RotatorKnob (0,1000000,1) set_knob_unit($RotatorKnob,$KNOB_UNIT_PERCENT) set_knob_defval($RotatorKnob,500000) make_persistent($RotatorKnob) set_knob_label($RotatorKnob,get_engine_par_disp($ENGINE_PAR_RT_SPEED,$GROUP,$SK_SLOT,$FX)) end on on ui_control ($RotatorKnob) set_engine_par($ENGINE_PAR_RT_SPEED,$RotatorKnob,$GROUP,$SK_SLOT,$FX) set_knob_label($RotatorKnob,get_engine_par_disp($ENGINE_PAR_RT_SPEED,$GROUP,$SK_SLOT,$FX)) end on
Tagged:
0
Comments
-
Exactly.
on init make_perfview set_script_title("FX") set_ui_height_px(350) declare const $SK_SLOT := 0 declare const $FX := -1 declare const $GROUP := 0 declare $i := 0 { a variable to count each while loop } declare const $MAX_GROUPS := 11 { the absolute number of groups } declare ui_knob $RotatorKnob (0,1000000,1) set_knob_unit($RotatorKnob,$KNOB_UNIT_PERCENT) set_knob_defval($RotatorKnob,500000) make_persistent($RotatorKnob) set_knob_label($RotatorKnob,get_engine_par_disp($ENGINE_PAR_RT_SPEED,$GROUP,$SK_SLOT,$FX)) end on on ui_control ($RotatorKnob) $i := 0 while ($i < $MAX_GROUPS) set_engine_par($ENGINE_PAR_RT_SPEED,$RotatorKnob, $i ,$SK_SLOT,$FX) inc($i) end while { the above loop will set groups from 0 to 10. it may seem confusing because MAX_GROUPS = 10 but remember that group IDs are zero based, so if you have 11 groups and want to change the settings in all groups, you will be setting engine parameters for groups 0 to 10 } set_knob_label($RotatorKnob,get_engine_par_disp($ENGINE_PAR_RT_SPEED,$GROUP,$SK_SLOT,$FX)) end on
from the above you can derive further ideas.
0 -
Thank you Gablux!
Actually, I received an error. Any idea why?
0 -
It seems there is a strange character after the closing parenthesis on that line, check that. It should be empty after the parenthesis close, just a return carrier to the next line
0
Back To Top
Categories
- 10.8K All Categories
- 22 Welcome
- 449 Hangout
- 59 NI News
- 209 Tech Talks
- 1.1K Native Access
- 4.9K Komplete
- 624 Komplete General
- 1.1K Komplete Kontrol
- 1.9K Kontakt
- 489 Reaktor
- 155 Battery 4
- 271 Guitar Rig & FX
- 203 Massive X & Synths
- 212 Other Software & Hardware
- 2.3K Maschine
- 14 Sampling Room
- 2.6K Traktor
- 2.4K 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