-
make_instr_persistent for function/group select
Assuming I have a callback for switches selecting a sample group. If I was to switch samples/groups how do I keep this persistent if the script is reset (panic reset)? Below is a snippet of what I am doing (as an example) function callback set_control_par(%ID[$original],$CONTROL_PAR_VALUE,0)…
-
Unisono Portamento Script - PGS Script for Time Control
Hi, I am struggling with the PGS scripting for the Portamento Combi Knob (Time). Can anyone help please? I have tried to follow the instructions from previous posts but keep running into script errors. I simply want a knob in script slot 1 to control the Portamento Time knob in script slot 4. The script below is where I…
-
Keeping keyboard colours the same when resetting Kontakt
Hey all, Currently I have two buttons that colour different key ranges when selected. Looking at the code below, when I press button1 and then the reset '!' in Kontakt I want the current button key range to stay the same and not revert back to what I have written for the initialization section, how can I make the key…
-
Update the playhead positions of multiple ui_waveform elements
I have an instrument with multiple waveform UI elements. I can update the playhead position of a single waveform element using the code seen in the reference manual: on note while ($NOTE_HELD = 1) $playPos := get_event_par($EVENT_ID, $EVENT_PAR_PLAY_POS) set_ui_wf_property($layer1RiseWf, $UI_WF_PROP_PLAY_CURSOR, 0,…
-
[BUG] has "tick" noise when use time-machine and play quarters
reproduce: create new instrument map source_120_loop_.aif to c2 go to "source" panel and change from "BFD" to "time-machine pro". and speed to "zone" on the "modulation" panel I reduce the "release" to 0ms add this script: on note ignore_event($EVENT_ID) play_note($EVENT_NOTE, 127, $DURATION_QUARTER * ($EVENT_VELOCITY -…
-
The right way to switch between groups
What is the right way to switch between groups with ksp script? I want to write script that switch group according to the held note. for example: play note c(0) will switch to group a, play note D#(3) will switch to group D
-
Is there a limit of 999 sliders?
I have been trying to troubleshoot why I get an unexpected 'control X was not declared or variable is no control' error, and I wonder if I haven't found the culprit. The issue seems to resolve itself when I reduce the number of sliders in my script to 999 or fewer. That is a nice, round number, so I'm thinking I found my…
-
Saving/Loading button combinations with other buttons and a menu
Hey all, I am working on a script that allows the user to save a preset to a specific button. So far I have 4 buttons which should be selected in any combination then by pressing the dropdown menu you can save or load. This all works fine but now I want to implement the 'Save to P1' and 'Save to P2' idea. By selecting…
-
Kontakt KSP and objects
I've found only arrays. however, to reduce the complexity of my code (searching) to o(1) I need to use dictionary data structure which also known as Associative_array (objects or dictionary). in simple words i'm looking for a way to declare arrays with string as key, like: %arr["key"] := value message(%arr["key"]) Is it…
-
Strange thing...
Hi, I have a strange thing to solve. I have a script with 6 menus of effects presets that I assign to configurable slots as I like. Everything works with panels (ui_panel) and on each panel sliders that appear and disappear depending on the slots configuration by the user. Everything works perfectly, except for this…
-
Change play position in the middle of a note (custom looping)
I'm implementing a custom looping mechanic where the user can drag start/end loop cursors over a waveform. Changing the engine's loop points with the following code is kind of slow, so calling it every time the user drags one of the cursors causes the cursors to move very slowly:…
-
Set_snapshot_type ..?
Hi _ I'm sorry but I don't understand the news Snapshot type appeared in the recent 6.7. Kontakt version . Can someone enlighten me ?
-
How to make script to play multiple samples at certain percentage
How can I use a script to allow multiple samples to be played from different groups, while allowing the user to determine the percentage, or gain, of each sample being played? So, for example, a knob will expose values between 0 and 100 and allow the user to select a value. This value will be used to determine the amount…
-
Custom labels
Hi all, I'm creating a new instrument and have finally got my new slider/knob appearing and functioning. Unfortunately the values that come with the native Kontakt display disappear once you replace it with a custom .PNG. I figured out how to create a ui_label or add_text_line but the Kontakt labels and text just look so…
-
Load NKA preset
Hi Guys, I want to create a NKA browser that gets the NKA files directly without opening the dialog. This is what I have so far. Remember to set a path so you can save the ska with custom names... on init declare $count declare @path @path := "/Users/NAME/Desktop/FOLDER/Data/" declare ui_button $Save declare ui_button…