Filter AHDSR
Reylon
Member Posts: 23 Member
Hey guys,
Hope you are doing well.
In the "Group Insert FX" I am using a filter which controls the modulator for the AHDSR.
However I have 6 different groups and I would like to affect them all using a loop of course.
The code I am using doesn't do nothing when the loop is included. By removing the loop the script works fine for targeted group only...
on ui_control ($FilterAttack) $group_counter:=1 while($group_counter < $ALL_GROUPS) set_engine_par($ENGINE_PAR_ATTACK, $FilterAttack,$group_counter,1,-1) set_control_par_str(get_ui_id($FilterAttack_label),$CONTROL_PAR_TEXT, get_engine_par_disp($ENGINE_PAR_ATTACK,$group_counter,1,-1)& " Ms") inc($group_counter) end while end on
0
Comments
-
Duh... $ALL_GROUP = $NUM_GROUPS
finally working!
0 -
Groups are counted from 0 btw, so your while loop is skipping the first group.
0 -
Also, it is customary to use $i, $j, $k... as loop counters. It's short and to the point.
0 -
Thanks for the reply guys. Medusa Im intentionally skipping the first group for sound system.☺️
0
This discussion has been closed.
Back To Top
Categories
- All Categories
- 19 Welcome
- 1.4K Hangout
- 60 NI News
- 761 Tech Talks
- 4K Native Access
- 16.2K Komplete
- 2K Komplete General
- 4.2K Komplete Kontrol
- 5.6K Kontakt
- 1.6K Reaktor
- 373 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