What's new

Volume

Possibility to insert a knob or a slider and hide it: however, the volume value is well determined in the KSP as you request. For example:


on init make_perfview declare ui_knob $master(0, 1000000, 1) $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) set_control_par(get_ui_id($master),$CONTROL_PAR_HIDE,$HIDE_WHOLE_CONTROL) on persistence_changed $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) end on on ui_control ($master) set_engine_par($ENGINE_PAR_VOLUME,$master,-1,-1,-1) end on
 
Possibility to insert a knob or a slider and hide it: however, the volume value is well determined in the KSP as you request. For example:


on init make_perfview declare ui_knob $master(0, 1000000, 1) $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) set_control_par(get_ui_id($master),$CONTROL_PAR_HIDE,$HIDE_WHOLE_CONTROL) on persistence_changed $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) end on on ui_control ($master) set_engine_par($ENGINE_PAR_VOLUME,$master,-1,-1,-1) end on
I received your advice, but
on persistence_changed

This description will result in an error.
 
OK it's work fine with end on before on persistence_changed .


on init make_perfview declare ui_knob $master(0, 1000000, 1) $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) set_control_par(get_ui_id($master),$CONTROL_PAR_HIDE,$HIDE_WHOLE_CONTROL) end on on persistence_changed $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) end on on ui_control ($master) set_engine_par($ENGINE_PAR_VOLUME,$master,-1,-1,-1) end on
 
I received your advice, but
on persistence_changed

This description will result in an error.
$ master: = 600000 This number 600000 is the volume number, isn't it? The volume does not change even if it is increased or decreased. Why? ??
 
Now, it's work fine !


on init make_perfview declare ui_knob $master(0, 1000000, 1) $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) set_control_par(get_ui_id($master),$CONTROL_PAR_HIDE,$HIDE_WHOLE_CONTROL) make_persistent($master) end on on persistence_changed $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) $master := 600000 end on on ui_control ($master) set_engine_par($ENGINE_PAR_VOLUME,$master,-1,-1,-1) end on
 
This is no good. It doesn't work at all.
Now, it's work fine !


on init make_perfview declare ui_knob $master(0, 1000000, 1) $master := 600000 $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) set_control_par(get_ui_id($master),$CONTROL_PAR_HIDE,$HIDE_WHOLE_CONTROL) make_persistent($master) end on on persistence_changed $master := get_engine_par ($ENGINE_PAR_VOLUME,-1,-1,-1) $master := 600000 end on on ui_control ($master) set_engine_par($ENGINE_PAR_VOLUME,$master,-1,-1,-1) end on
This is no good. It doesn't work at all.
 
You need to SET engine parameter, not GET in persistence_changed...

Anyways, this is a really bad idea to do! Let the users set their own volume level for the instrument!
 
Yes or hope to adjust this Volume via the automation of the DAW used if you are not in Standalone mode with KONTAKT.
 
Different users might have Kontakt's master volume set up differently, this is why you shouldn't force set volume like this. Just let people set their own output volume for the instrument.
 
Different users might have Kontakt's master volume set up differently, this is why you shouldn't force set volume like this. Just let people set their own output volume for the instrument.
understood. I found that I couldn't do what I wanted to do. Thank you for all the advice.
 
Top Bottom