Kontakt script "Group" question
-
- KVRist
- 46 posts since 23 May, 2006
Hello everybody.
I'm tring to understand how Groups index works but I have some problems.
Thanks in advance for any help.
I have a 4 layer instrument.
I have set up an LFO that should control all layers at once
$lfo_amount1 := _get_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY, 0,1,0)
0,1,0 is related to group1 - how can I tell kontakt to act on all gropus?
I'm tring to understand how Groups index works but I have some problems.
Thanks in advance for any help.
I have a 4 layer instrument.
I have set up an LFO that should control all layers at once
$lfo_amount1 := _get_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY, 0,1,0)
0,1,0 is related to group1 - how can I tell kontakt to act on all gropus?
- KVRAF
- 24458 posts since 7 Jan, 2009 from Croatia
Always name your modulators and use find_mod() and find_target() instead of numbers directly, which can be very error-prone. I have already linked you with a thread where it's all explained.
Act on all groups - use a while loop.
Act on all groups - use a while loop.
-
- KVRist
- Topic Starter
- 46 posts since 23 May, 2006
Thanks got it
Im almost done.
I have these two last things I tried to do without success :
I have randomize the pitch, how I can randomize octave by octave instead of a "free" randomize ?
Basically it have to randomise beetween -36st, -24st, -12st, 0st, +12st, +24st, +32st (instead of 0,1000000)
$mix_tune1 := random(0,1000000)
Is it possible to have the Volume LFO and the Pan LFO after the send FX (actually is before the sendFX)?
thanks for any help!
Im almost done.
I have these two last things I tried to do without success :
I have randomize the pitch, how I can randomize octave by octave instead of a "free" randomize ?
Basically it have to randomise beetween -36st, -24st, -12st, 0st, +12st, +24st, +32st (instead of 0,1000000)
$mix_tune1 := random(0,1000000)
Is it possible to have the Volume LFO and the Pan LFO after the send FX (actually is before the sendFX)?
thanks for any help!
- KVRAF
- 24458 posts since 7 Jan, 2009 from Croatia
No, you cannot have any modulation in insert or send effects - these are group-level modulators that cannot apply to anything other than group parameters.
For octaves, first you need to know that pitch is distributed linearly between 0 and 1000000, with a total range of 7200 cents. So, this gives us ~139 units per cent, which means that an octave is ~166666 or thereabouts. So, what you need to do is:
500000 + (random(-3,3) * 166666)
For octaves, first you need to know that pitch is distributed linearly between 0 and 1000000, with a total range of 7200 cents. So, this gives us ~139 units per cent, which means that an octave is ~166666 or thereabouts. So, what you need to do is:
500000 + (random(-3,3) * 166666)
