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
This discussion has been closed.
Back To Top
Categories
- All Categories
- 19 Welcome
- 1.5K Hangout
- 62 NI News
- 785 Tech Talks
- 4.1K Native Access
- 16.5K Komplete
- 2K Komplete General
- 4.3K Komplete Kontrol
- 5.7K Kontakt
- 1.6K Reaktor
- 378 Battery 4
- 845 Guitar Rig & FX
- 429 Massive X & Synths
- 1.3K Other Software & Hardware
- 5.8K Maschine
- 7.3K Traktor
- 7.3K 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