Creating a blend fader or knob with two different groups

Options
sarahmeyz
sarahmeyz Member Posts: 7 Newcomer

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:

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:

	on ui_control($fader)
	set_engine_par($ENGINE_PAR_VOLUME,$fader,-1,-1,$NI_BUS_OFFSET + 0)

end on


	on 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!

Comments

  • stephen24
    stephen24 Member Posts: 288 Pro
    Options

    Why not simply modulate both groups with the same cc#, and invert one. Your cc messages can come from wherever you want.

Back To Top