kontakt one
Member
Please let me know if you know. When you open the Instrument with a script I would like to know how to specify the volume.
Instead of controlling with sliders and knobs I want to specify the volume with the value of the script.Do you wish to include a master volume control of the instrument in the Script ?
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, butPossibility 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
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
$ 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? ??I received your advice, but
on persistence_changed
This description will result in an error.
Yes; I search but I don't find the soluce .$ master: = 600000 This number 600000 is the volume number, isn't it?
Somehow, it doesn't work.Yes; I search but I don't find the soluce .
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
It's different from what I want to hear.It's different from what I want to hear.Yes or hope to adjust this Volume via the automation of the DAW used if you are not in Standalone mode with KONTAKT.
understood. I found that I couldn't do what I wanted to do. Thank you for all the advice.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.