Hello everyone, I would like you to help me with a little problem that I can't solve.
I'm using Kontakt version 7.4 and I'm trying to create the script to be able to handle the step modulator controls from the user interface of my instrument. I've already been able to solve the control to handle each of the steps using a table, and I've also managed to configure the knob to control the frequency, but when I try to create the control to manipulate the number of steps, the Kontakt script editor gives me the error:
ERROR (Line 2314): Variable "$ENGINE_PAR_STEPSEQ_STEPS" was not declared!
According to what I understand in the KSP manual, this command is the one I need to control the number of steps of the Step Modulator, but I don't understand why it sends me this error, it's as if Kontakt doesn't recognize this motor parameter.
The command lines that I'm trying to use to control this knob are the following:
on ui_control ($sm_num_sli)
%counter[0] := 0
set_table_steps_shown (%step_modul_table, $sm_num_sli)
while(%counter[0] < $NUM_GROUPS)
set_engine_par($ENGINE_PAR_STEPSEQ_STEPS, $sm_num_sli, %counter[0], 2, -1)
inc(%counter[0])
end while
end on
Just as a note, I use a while loop so I can control all the step modulators of each of my instrument's groups using a single knob.
I don't know if anyone has already gone through something similar that could shed some light on the error I'm making.
Thank you very much in advance for your help.
I'm using Kontakt version 7.4 and I'm trying to create the script to be able to handle the step modulator controls from the user interface of my instrument. I've already been able to solve the control to handle each of the steps using a table, and I've also managed to configure the knob to control the frequency, but when I try to create the control to manipulate the number of steps, the Kontakt script editor gives me the error:
ERROR (Line 2314): Variable "$ENGINE_PAR_STEPSEQ_STEPS" was not declared!
According to what I understand in the KSP manual, this command is the one I need to control the number of steps of the Step Modulator, but I don't understand why it sends me this error, it's as if Kontakt doesn't recognize this motor parameter.
The command lines that I'm trying to use to control this knob are the following:
on ui_control ($sm_num_sli)
%counter[0] := 0
set_table_steps_shown (%step_modul_table, $sm_num_sli)
while(%counter[0] < $NUM_GROUPS)
set_engine_par($ENGINE_PAR_STEPSEQ_STEPS, $sm_num_sli, %counter[0], 2, -1)
inc(%counter[0])
end while
end on
Just as a note, I use a while loop so I can control all the step modulators of each of my instrument's groups using a single knob.
I don't know if anyone has already gone through something similar that could shed some light on the error I'm making.
Thank you very much in advance for your help.
Statistics: Posted by dragon_lumarg — Fri Sep 27, 2024 5:11 am — Replies 0 — Views 11