How can I create a script in Kontakt to have a knob control the number of steps in the step modulator?

Sampler and Sampling discussion (techniques, tips and tricks, etc.)
Post Reply New Topic
RELATED
PRODUCTS

Post

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.

Post

The answer to this thread I opened was answered very quickly and accurately in another forum by the master EvilDragon, and I would like to share it with you in this forum:

There is an error in the KSP reference manual, the correct command is $ENGINE_PAR_STEPSEQ_NUM_STEPS

Post Reply

Return to “Samplers, Sampling & Sample Libraries”