Deprecated Command for ADSR Control, alternative?

Myntian
Member Posts: 1 Newcomer
Hello, it's my first post here so be easy on me 😅
With the introduction of Kontakt 7, the find_mod()
command has been deprecated, replacing it with get_mod_idx().
I'm sure I am doing this correctly (according to Kontakt 6 standards), but maybe I have something wrong.
on ui_control( $ADSRView_attack ) set_engine_par( $ENGINE_PAR_ATTACK, $ADSRView_attack, 0, find_mod( 0, "ENV 0" ), -1 ) set_engine_par( $ENGINE_PAR_ATTACK, $ADSRView_attack, 1, find_mod( 1, "ENV 1" ), -1 ) end on
If the code looks correct and I need to find a workaround until I upgrade to Kontakt 7, do you know of any alternative solutions I can do for now?
EDIT:
For now, I am doing this and it seems to be working fine, but it bothers me I'm unable to do it the old way:
set_engine_par($ENGINE_PAR_ATTACK, $ADSRView_attack, 0, 0, -1)
Additional Screenshots:
Thanks!
Tagged:
0
Back To Top
Categories
- All Categories
- 21 Welcome
- 750 Hangout
- 73 NI News
- 355 Tech Talks
- 1.6K Native Access
- 7.2K Komplete
- 938 Komplete General
- 1.7K Komplete Kontrol
- 2.7K Kontakt
- 660 Reaktor
- 229 Battery 4
- 399 Guitar Rig & FX
- 264 Massive X & Synths
- 392 Other Software & Hardware
- 3.1K Maschine
- 23 Sampling Room
- 3.8K Traktor
- 3.5K 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