Quantcast
Channel: KVR Audio
Viewing all articles
Browse latest Browse all 5856

Instruments • Creating a fader/knob that can blend two groups in a kontakt instrument

$
0
0
Hi there,

I am creating a kontakt instrument with two sounds, each in its own group (two groups in total).

Group 1 is being routed to Bus 1, and Group 2 to Bus 2.

I wanted to have a single fader or single knob that would allow me to blend both instruments. So, for example, if I bring the fader all the way to the left, it plays group 1, and as I move it to the right, it starts blending with group 2. And all he way to the right, I would only hear group 2.

Here is my created fader script:

Code:

declare ui_slider $fader(0,1000000)move_control_px($fader,100,90)make_persistent($fader)declare $faderId$faderId := get_ui_id($fader)set_control_par_str($faderId, $CONTROL_PAR_PICTURE,"fader")

And then the actions I want the single fader to perform:

Code:

on ui_control($fader)set_engine_par($ENGINE_PAR_VOLUME,$fader,-1,-1,$NI_BUS_OFFSET + 0)end onon ui_control($fader)set_engine_par($ENGINE_PAR_VOLUME,$fader,-1,-1,$NI_BUS_OFFSET + 1)end on
The issue I am having is that when I set those two actions, only one works, so the fader only controls one instrument. I can't get the fader to control the two buses at the same time.



Any clues on how I could build a fader/knob that would be able to blend these two instruments?

Thank you! :D

Statistics: Posted by sarahmeyz — Wed Apr 24, 2024 3:42 pm — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 5856

Trending Articles