-
Waveforms View ?
hello, i found in an old KSP reference a example of how to get the sample view to the GUI Nice toy this 😅 A Display for waveforms of LFO and Filter would be great. Does anyone know if its possible to get the waveform of these two to the GUI?
-
Custom ui_buttons glitch out after touching other controls
Hi Guys, I've got a few custom buttons I'm trying to use in an instrument. If the buttons are in an off state, (value 0) and I move another knob on the instrument the button graphics will get chopped and only show a portion of the top of the button until I click it again. They don't glitch out if they are in an On state.…
-
Creator Tools "too many controls"
Hi There, I must say I'm really disappointed on NI's limitations with scripts and creator tools. Kontakt can't apply my code no more since creator tools says "too many controls of this type" Is there any fix for this? Could I have another perfview when a certain button is clicked?
-
Ho do I make a function with if?
I make a function that contains if: on init message(Add(1,2)) end on function Add(x,y) -> output if x > 0 output := x + y else output := 0 end if end function And I get the error message: The definition of function Add needs to consist of a single line (eg. "result := <expr>") in order to be used in this context Ho do I…
-
Need KSP Help: Small adjustments for a keyswitch note fade out/mute script for Kontakt
There are two adjustments I've been looking to make to a keyswitch note fadeout script that I've been working on for an instrument.: - I'd like for the keyswitch to ignore any notes that I still have my fingers held down on, and to only fade out/mute the notes that I've taken my fingers off of. - I'd like for the keyswitch…
-
Pre-amp gain knob for gain staging?
I have a chain of per-voice pre-amp group FX, some of which need gain staging (e.g., Lo-Fi). Is there any way to do this in a continuous way that doesn't use noteably more CPU? I can set the zone volume (which doesn't get applied continuously), the engine volume knob, the $EVENT_PAR_VOLUME, but none of these are applied…
-
How to make the initial picture frame state of a custom slider/button match its PAR_DEFAULT_VALUE?
All of my custom sliders and buttons function correctly, but they all seem to visually default to their first frame of animation. I have to ctrl+click on the control, or otherwise manipulate it, for it to display correctly. From there on out, the controls will always be visually correct. Thanks :)
-
Show values on S88 mk 2
Hey guys, When I make an instrument with custom knobs(sliders) I cant get my S88 mk2 to display the parameter changes above the knobs (see pictures), but when I use standard knobs everything works fine .. I guess I'm forgetting something in the script, but I can't figure out what ..?? Peace :-)
-
scripting independent-count Round-Robins for all 128 notes?
Hi, I need help properly scripting independent round robins on a multi-mic instrument. (Guitar) I have 2 mics, 5 Velocity layers and Two RR per note. I've set this up in 4 groups. 1 - Mic A RR1 2 - Mic B RR1 3 - Mic A RR2 4 - Mic B RR2 I don't know how to tell kontakt to play each note on an independent RR count. Group 0…
-
Modstrip value change on switch press
Hi There, i have a problem on my modswitch script. I want a switch to switch 2 Modstrips, between 2 Modstrip states. But it only works in one way. The "else" statment did not work but why? the functions in there are only for showing and hiding other switches. Thx for your help on ui_control($ModSwitch) if ($ModSwitch = 1)…
-
How to work with zone commands
on the KSP reference pdf, I found section 15. Zone Commands It sounds like there is something that called "user zones". I don't know how to use set_zone_par() I'll explain what i'm trying to achieve, I want to take voices/samples and change their velocity properties on the fly. any idea?
-
Scripting a delay based on DAW tempo?
Is it possible for one to create a script that plays samples in the "on note" section of a script at a delay which is based on the tempo of the project in the user's DAW. Thus, when the user hits a note, that note is played by a certain sample and can other samples be played at perhaps a quarter note delay or an eighth…
-
Disable set of key switches with menu
Hi Guys, I am trying to have a menu that allows the user to move between a 'simple' and 'advanced' key switch system. The problem is that when I select advanced even though the red 'simple' key switch notes disappear and the magenta 'advanced' ones appear, the blacked out key switch 'simple' notes still work when the…
-
Using menu to change key switch sets
I have asked about this before but I am trying something a little different now and am stuck. I have tried to adapt the code from the Kontakt factory library so I can have two different sets of key switches (a 'simple' set and an 'advanced' set). The idea is that there is a menu with a dropdown for each set and when one is…
-
ignore_event still triggers a voice?
Hi. I got a counter variable in my code that is supposed to be increased in the on note callback and decreased in the on release callback. In the on note callback I also use ignore_event($EVENT_ID) and then follow this up with my own play_note(...) function. When I play a note it does counts up by 1. When I release a note…
-
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)…
-
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