hi! i have slip problem with this script; this script is Kontrol S8 TOUCHJOG modofied about me for scratch, and it works, but with slip on…slip don’t work :( could you help me? thanks!!

Posted Sun 26 Jan 25 @ 10:36 am
Hi
I have an Akai LPD8 (8 pad colour controller) that I have been reprogramming to use as a sampler pad that will play samples taking into account what sample page is selected.
Quite simply I've set the controller to be on deck 5 so it doesn't effect my left or right decks and mapped custom buttons to cycle up and down the sample pages for deck 5.
'sample_pad 1' etc works fine for every page,
& 'sampler_pad 1 ? blink ? sampler_color 1 : off : sampler_color 1' etc will show the correct colours for each pad on the selected page.
I have 2 queries:
1. Sampler volume
The LPD8 also has 8 volume knobs but 'sampler_volume_nogroup 1' ALWAYS adjusts sample slot 1 regardless of what the sample page you are on.
I have programmed in
'param_equal `sampler_pad_page` "1 to 8" ? sampler_volume_nogroup 1 :
param_equal `sampler_pad_page` "9 to 16" ? sampler_volume_nogroup 9 : ' etc
but with 8 pages to script for 8 buttons, I wondered if there was a more efficient way to adjust the sampler volumes, perhaps that would follow the sampler page but still use 1-8.
2. Is there a way to CYCLE through the sampler_pad_pages, I can have 2 buttons, 'sampler_pad_page +1' and '-1' but when you get to the end (or beginning) it will stop rather than revert back to '1 to 8', I know I can script it to check if I am at the end but wondered if there was a way to specify to automatically cycle.
Anyway, it does work OK but since samples have changed dramatically recently I wondered if there were improvements (perhaps not yet documented) I could use to get the script more efficient.
Thanks.
I have an Akai LPD8 (8 pad colour controller) that I have been reprogramming to use as a sampler pad that will play samples taking into account what sample page is selected.
Quite simply I've set the controller to be on deck 5 so it doesn't effect my left or right decks and mapped custom buttons to cycle up and down the sample pages for deck 5.
'sample_pad 1' etc works fine for every page,
& 'sampler_pad 1 ? blink ? sampler_color 1 : off : sampler_color 1' etc will show the correct colours for each pad on the selected page.
I have 2 queries:
1. Sampler volume
The LPD8 also has 8 volume knobs but 'sampler_volume_nogroup 1' ALWAYS adjusts sample slot 1 regardless of what the sample page you are on.
I have programmed in
'param_equal `sampler_pad_page` "1 to 8" ? sampler_volume_nogroup 1 :
param_equal `sampler_pad_page` "9 to 16" ? sampler_volume_nogroup 9 : ' etc
but with 8 pages to script for 8 buttons, I wondered if there was a more efficient way to adjust the sampler volumes, perhaps that would follow the sampler page but still use 1-8.
2. Is there a way to CYCLE through the sampler_pad_pages, I can have 2 buttons, 'sampler_pad_page +1' and '-1' but when you get to the end (or beginning) it will stop rather than revert back to '1 to 8', I know I can script it to check if I am at the end but wondered if there was a way to specify to automatically cycle.
Anyway, it does work OK but since samples have changed dramatically recently I wondered if there were improvements (perhaps not yet documented) I could use to get the script more efficient.
Thanks.
Posted Wed 05 Feb 25 @ 9:21 pm
No you're pretty up to date with your methods.
Posted Thu 06 Feb 25 @ 4:51 am
hi all.
it´s possible to get and show in custom button name case the live count of a repeat_start "x"
My idea is play a sampler in periodes of X time.
and if i could would be very nice view a counter in button who display time remining for next sampler play.
i´m playing with script long time but aresome things i can´t reach understand.
i´m tried some fool scripts like this whitout success:
`get_text ´get_var "kuñas" ``
`get_text ´get_var "kuñas" & param_cast ``
i supposse had to add a repeat for live update time, but first need to get the time value, and convert ms to min & seg, last thing hope do it with explanations on the "repeat" chapter of school...
lot of work yet for make it...
thanks
it´s possible to get and show in custom button name case the live count of a repeat_start "x"
My idea is play a sampler in periodes of X time.
and if i could would be very nice view a counter in button who display time remining for next sampler play.
i´m playing with script long time but aresome things i can´t reach understand.
i´m tried some fool scripts like this whitout success:
`get_text ´get_var "kuñas" ``
`get_text ´get_var "kuñas" & param_cast ``
i supposse had to add a repeat for live update time, but first need to get the time value, and convert ms to min & seg, last thing hope do it with explanations on the "repeat" chapter of school...
lot of work yet for make it...
thanks
Posted Fri 21 Feb 25 @ 3:59 pm
There's nothing in the repeat_start verb that does that, there's nothing stopping you setting your own variable and displaying that.
Posted Fri 21 Feb 25 @ 6:04 pm
Btw I have been able to achieve good results for simple scripts with ChatGPT.
Posted Sat 22 Feb 25 @ 6:39 pm
hi, do you think is a little bug that sampler_pad if it’s in a little sintax like photo doesn’t work? work only if script is only “sampler_pad”

Posted Sat 22 Feb 25 @ 11:29 pm
Hi
I've been playing to no avail so any help or pointers would be appreciated.
I am trying to add to my skin 2 video_fx buttons & 2 video_fx sliders, to modify the current video fx directly
I can add the buttons & sliders and they work fine but I am having trouble labelling them.
The manual lists the verb 'get_video_fx_slider_label' but I can only get it to display the label of the first slider no matter what. I have been testing using a custom button and `deck master get_video_fx_slider_label 2` etc, returns the 1st slider label for the selected video effect and ignores the number, so I am not sure what I am doing wrong.
Also, I have been looking for a way to get the video_fx button label but that doesn't seem to exist.
So is there a way in vdjscript to create (eg) 'video_fx_button 2' and 'video_fx_slider 2' and get the labels for those buttons/sliders to display in the skin.
Thanks
I've been playing to no avail so any help or pointers would be appreciated.
I am trying to add to my skin 2 video_fx buttons & 2 video_fx sliders, to modify the current video fx directly
I can add the buttons & sliders and they work fine but I am having trouble labelling them.
The manual lists the verb 'get_video_fx_slider_label' but I can only get it to display the label of the first slider no matter what. I have been testing using a custom button and `deck master get_video_fx_slider_label 2` etc, returns the 1st slider label for the selected video effect and ignores the number, so I am not sure what I am doing wrong.
Also, I have been looking for a way to get the video_fx button label but that doesn't seem to exist.
So is there a way in vdjscript to create (eg) 'video_fx_button 2' and 'video_fx_slider 2' and get the labels for those buttons/sliders to display in the skin.
Thanks
Posted Sun 09 Mar 25 @ 7:32 pm
Yeah the get_ verb is missing params for element number
Go the more old school way by using the video slot
get_effect_slider_text video 2
Go the more old school way by using the video slot
get_effect_slider_text video 2
Posted Sun 09 Mar 25 @ 7:56 pm
locoDog wrote :
Yeah the get_ verb is missing params for element number
Go the more old school way by using the video slot
get_effect_slider_text video 2
Go the more old school way by using the video slot
get_effect_slider_text video 2
Testing it on a custom button it returns the VALUE of the slider not the LABEL of the slider, have I missed something.
I think this is going to be one of those 'no can do' scenarios if button labels are the same.
EDIT:
Sorry you probably misunderstood me (or were pointing me in the right direction without giving it away) and I didn't check the verb you were referring to but 'get_effect_slider_label video 2' does the trick, and the same with the button names, I had forgotten about adding the 'video'.
All working
Thanks
Posted Sun 09 Mar 25 @ 8:38 pm
I'm turning in circles with something very simple. I want to duplicate the CFX level from deck 1 to deck 2. If it is 0.6 on deck 1, I'd like to copy that to deck 2 "deck 2 filter 0.6". I am able to set a variable $toto to 0.6, confirmed with VAR LIST but I have no clue how to apply the variable to "filter", and I guess I will also be unable to fill $toto with the actual "filter" value on deck 1. So what is the proper syntax to achieve "filter $toto"?
Posted Tue 11 Mar 25 @ 1:01 am
param_cast is what you use to put a variable on the end of a verb
to set a variable to a script action value, the set verb allows script actions as a parameter when the action is wrapped in ` `
get_var $toto & param_cast & deck 2 filter
to set a variable to a script action value, the set verb allows script actions as a parameter when the action is wrapped in ` `
set $toto `deck 1 filter`
Posted Tue 11 Mar 25 @ 12:39 pm
Thanks, it works fine.
Posted Sat 15 Mar 25 @ 2:27 am
Q: can VDJ script be written as structured code?
I'm 51 years as a software developer, and the run-on "everything on one line" makes me squirm.
Is there a line continuation character or ?? that allows for writing more structured code?
Thanks in advance.
I'm 51 years as a software developer, and the run-on "everything on one line" makes me squirm.
Is there a line continuation character or ?? that allows for writing more structured code?
Thanks in advance.
Posted Thu 20 Mar 25 @ 6:59 pm
bgavin wrote :
run-on "everything on one line" makes me squirm.
return chars and tabs are understood as spaces.
Posted Thu 20 Mar 25 @ 8:49 pm
Writing in structured form, this works correctly.
I use the 4-deck skin
set '%Src' 2 &
set '%Dst' 1 &
set '%Fader' 0.0
var_list shows these variables are correctly instantiated, but still show on [d3] even though created on [d2]
It is my understanding that percent types are local to the deck they are created on.
What is failing entirely is using the deck object with these variables.
deck %Src play
deck '%Src' play
deck `%Src` play
All fail.
I am puzzled, and cannot find any examples or cures out in Google land.
I use the 4-deck skin
set '%Src' 2 &
set '%Dst' 1 &
set '%Fader' 0.0
var_list shows these variables are correctly instantiated, but still show on [d3] even though created on [d2]
It is my understanding that percent types are local to the deck they are created on.
What is failing entirely is using the deck object with these variables.
deck %Src play
deck '%Src' play
deck `%Src` play
All fail.
I am puzzled, and cannot find any examples or cures out in Google land.
Posted 7 days ago @ 5:38 pm
you want set_deck to do that kind of thing, deck verb doesn't accept script action as a parameter or as a cast.
vars created on wrong deck, must be something your end no problems here.
vars created on wrong deck, must be something your end no problems here.
Posted 7 days ago @ 10:32 pm
Hi
I have got a lightweight controller I use for some simple gigs but there are a few things it doesn't have for VDJ including an easy way to move around the browser panels without repurposing buttons I already need,
so I've reprogrammed the Track knob to include this when shifted:
'shift ? browser_window "folders,songs,sideview" & browser_window "folders" ? show_splitpanel 'Folders' on : show_splitpanel 'Folders' off : browser_scroll'
However when I scroll forward it works fine and moves between the different panels in order but when I scroll backwards it always goes from 'sideview' back to 'folders' then 'sideview' again, missing out the 'songs' panel.
Is this a parameter problem, with the back scroll decreasing a bit too much with each click and missing a step, if so, is there a way with some fancy math to reduce it so that when you scroll backwards it will allow it to work properly.
I don't mind if you have to turn the wheel more to achieve this.
I have got a lightweight controller I use for some simple gigs but there are a few things it doesn't have for VDJ including an easy way to move around the browser panels without repurposing buttons I already need,
so I've reprogrammed the Track knob to include this when shifted:
'shift ? browser_window "folders,songs,sideview" & browser_window "folders" ? show_splitpanel 'Folders' on : show_splitpanel 'Folders' off : browser_scroll'
However when I scroll forward it works fine and moves between the different panels in order but when I scroll backwards it always goes from 'sideview' back to 'folders' then 'sideview' again, missing out the 'songs' panel.
Is this a parameter problem, with the back scroll decreasing a bit too much with each click and missing a step, if so, is there a way with some fancy math to reduce it so that when you scroll backwards it will allow it to work properly.
I don't mind if you have to turn the wheel more to achieve this.
Posted 6 days ago @ 1:52 pm
without looking at why it is like it is, I can suggest going explicitly
not pretty but it's a one off
shift ? param_bigger 0 ? browser_window "folders,songs,sideview" & browser_window "folders" ? show_splitpanel 'Folders' on : show_splitpanel 'Folders' off : browser_window folders ? show_splitpanel 'Folders' off & browser_window sideview : browser_window sideview ? browser_window songs : browser_window songs ? show_splitpanel Folders on & browser_window folders : browser_scroll
not pretty but it's a one off
Posted 6 days ago @ 2:16 pm
Your 'ugly' code is what I used originally on seperate buttons on my full controller until I 'refined' it as I learned better VDJ scripting and it does the job.
Where I fell down is remembering the nuance of how VDJscript works ('param_bigger 0' to check forward scroll etc) and I couldn't for the life of me work out how to transfer the old code to an knob so thanks again.
Where I fell down is remembering the nuance of how VDJscript works ('param_bigger 0' to check forward scroll etc) and I couldn't for the life of me work out how to transfer the old code to an knob so thanks again.
Posted 6 days ago @ 3:08 pm