Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 15.55
locoDogPRO InfinityModeratorMember since 2013
there's this action
holding
Individual vars feels like the wrong way to go, use one var with different values, even less work would be use no vars and use sampler_select, of course it all matters to exactly what you're doing if it is the best approach.

set '$myVar' 5 while_pressed & holding 200ms ? : sampler_play_stop 5

sampler_select 5 & holding 200ms ? : sampler_play_stop
 

Posted Sun 23 May 21 @ 7:49 pm
SveninoPRO InfinityMember since 2009
Partial success!
[set '$myVar' 5 while_pressed & holding 200ms ? : ] works fine

[sampler_play_stop 1] still needs to be replaced.
As I mentioned earlier, the sampler should run synchronously with all decks that will be set as masterdeck. From my external controller (Launchpad) this only works via command [sampler_pad1]
If I use [sampler_play...] there is no sync or sync is lost after a Crossfade and set new masterdeck. (Sample Editor is of course set to sync lock or sync start)
[sampler_pad] doesn‘t work behind the Colon.
Is there a [sampler 1 play & sync with all decks command?
Or what else could I do?
 

Posted Sun 23 May 21 @ 10:07 pm
NicotuxHome userMember since 2014
Svenino wrote :
Want a button with two functions:
1. short press: start and stop the sampler (sample_pad 1)
2. long hold: Set a "Var" for volume change of this sampler without starting or stoping it.
(Holding this button is like a shift, so that a slider can control the volume of this sampler, but just as long You are holding the button)

After a looong time fighting with VDJScript here is a working one:
deck master up ? set '$s1v' 0 & repeat_start myrep ? sampler_play_stop 1 & repeat_stop myrep : : repeat_start myrep 200ms 1 & set '$s1v' 1


tested deck master to try to sync sampler_play_stop

if not , free to use sampler_pad instead
 

Posted Mon 24 May 21 @ 2:09 am
SveninoPRO InfinityMember since 2009
Thank You NICOTUX! Great! It´s such a good feeling, that someone solves my problem while I´m sleeping...
Now the (12) Samplerbuttons work fine as honey! I decided for the easiest way.
Each Button has following code:
deck master up ? set '$sv' 0 & repeat_start myrep ? sampler_play_stop 1 & repeat_stop myrep : : repeat_start myrep 200ms 1 & set '$sv' 1 & sampler_select 1 

Sampler_play_stop X and sampler_select X are from 1-12.
'$sv' is the variable for SamplerVolume and the (only one) Slider has following code:
var "$sv" 1 ? sampler_volume_nogroup : nothing

that´s it :-) AND EVERYTHING IS IN SYNC TILL ETERNITY ;-)
Whenever I hold a sampler button I can adjust the volume on my slider.
(And use the other sliders for other tasks)
THANK YOU AGAIN!
 

Posted Mon 24 May 21 @ 12:49 pm
SveninoPRO InfinityMember since 2009
And now the big question (it´s the script-shool):
Could You please explain Your code? So that You can sleep in the future and I help myself.

[deck master up ? set '$s1v' 0 & repeat_start myrep ? sampler_play_stop 1 & repeat_stop myrep : : repeat_start myrep 200ms 1 & set '$s1v' 1]

1.) Untill now I never understood the repeat_start/stop syntax really
2.) Two times Colon... is [ : : ] the same as [ : nothing : ] ?
3.) How [deck master up ? ] brings all my samplers stay in sync even when I change masterdeck...?

Thank You again (and again and again...)
 

Posted Mon 24 May 21 @ 1:02 pm
locoDogPRO InfinityModeratorMember since 2013
 

Posted Mon 24 May 21 @ 1:06 pm
NicotuxHome userMember since 2014
3 ? there is no 3 ^^

deck master .... selects the master deck ... you can change masterdeck, it's always the master one
(depending on actions ... "master" refers to either "master channel" deck or "master tempo" deck)
trials and errors ... :\

up ? UP_ACTION : NOT_UP_ACTION

what keep samples in sync is ... early activation of sample (more or less the press duration)

I have a little multitouchscreen pad page so that already needed some kind of same scripts
https://imgur.com/a/crJcksT
 

Posted Mon 24 May 21 @ 2:17 pm
SveninoPRO InfinityMember since 2009
Thank both of You, will check it out and learn really hard.
All the best for You!
 

Posted Mon 24 May 21 @ 8:55 pm
Who know, where is this command in script ?
 

Posted Thu 27 May 21 @ 1:43 pm
locoDogPRO InfinityModeratorMember since 2013
there isn't a delete file script, I don't think there ever will be.

I use a specific colour to mark a file I want to delete, and I have filter for that colour so I can batch delete easily.
 

Posted Thu 27 May 21 @ 1:51 pm
locoDogPRO InfinityModeratorMember since 2013
Sorry updated the original post with some chapter links, will be covering beat_bar in the next few days.
 

Posted Wed 09 Jun 21 @ 4:07 pm
SveninoPRO InfinityMember since 2009
Hi, again a syntax question:

Is it possible to use a VAR with BEATJUMP?
I have set a var "$BJB" to 1,2,4,8...
But [beatjump var "$BJB"] doesn´t work.
And how can I do a negative beatjump with this VAR?
[beatjump var "$BJB" & param_invert] ?

Thanks for Your help
 

Posted Sun 04 Jul 21 @ 4:00 pm
locoDogPRO InfinityModeratorMember since 2013
get_var 'test' & param_cast 'relative' & beatjump
get_var 'test' & param_multiply -1 & param_cast 'relative' & beatjump
 

Posted Sun 04 Jul 21 @ 4:37 pm
SveninoPRO InfinityMember since 2009
Thanks Locodoc. It works fine. You saved me lots of time try & erroring.
 

Posted Sun 04 Jul 21 @ 5:58 pm
SveninoPRO InfinityMember since 2009
Now I have a problem with my endless encoders on Akai APC 40 mk2:

I use them to control eq: [deck left eq_high]
When I reset the eq by [deck left eq_high 50%] sometimes the controller sends a zero before the turning data.
This sets the eq to zero and I have to turn more to come to the middle.
In settings I choosed "soft takeover gradual" because of the sliders used for some volumecontrols.

How can I avoid the unwanted zeroing?
Thanks in advance
 

Posted Sun 04 Jul 21 @ 6:08 pm
locoDogPRO InfinityModeratorMember since 2013
not sure, sounds like a hardware issue.
 

Posted Sun 04 Jul 21 @ 6:39 pm
To the moderator or anyone that may know the answer,

I recently purchased Virtual DJ for my Rane configuration (i.e., two Rane Twelve turntables and one Rane Seventy mixer). I'm used to having Technics 1210 turntables, where when I press the start/stop button, the platters will turn continuously, until such time that I press the start/stop button again.

I noticed when I use the Rane Twelves with Virtual DJ that when I eject a song from the deck the Rane Twelve turntable platters stop turning.

I need help with just one problem...how do I stop Virtual DJ from stopping my Rane Twelve decks? I want the Rane Twelve platters to spin continuously, regardless if I eject a track from the Virtual DJ software. I need this functionality because I use my scroll/load knob on the Rane Twelves to drop in a track from the first cue point, on beat. If the decks aren't already spinning, there is a significant lag / delay in the start of the track I'm dropping in.

Does anyone know how I can tell Virtual DJ to cease from stopping / starting my Rane Twelve turntables?
 

Posted Sat 24 Jul 21 @ 9:06 pm
I've looked in the manual & this Script School, but I can't find a way to do this, does anyone have any idea please :

I use a Video Skin when I'm playing videos,
I'm trying to create a button/script to turn the video skin on and off (not the whole video ouput, just the video skin)
Example - my video skin shows the song Artist/Title/Year
Sometime we play "guess the year this song was released" so I don't want all that info displaying on screen.

Thanks in advance for any advice
 

Posted Fri 30 Jul 21 @ 3:20 pm
locoDogPRO InfinityModeratorMember since 2013
setting videoskin ""

to turn off

setting videoskin "for Live:live"

to turn back on, the actual quoted string check your setting with the skin active for the correct param

for a toggle switch
setting videoskin "" ? setting videoskin "for Live:live" : setting videoskin ""

again your quoted skin may differ

credit to Nicotux, as I was messing with load_skin verb until I searched.
Well worthy of being documented here.
 

Posted Fri 30 Jul 21 @ 3:54 pm
NicotuxHome userMember since 2014
That's a little weird (does not always work depending on automix and karaoke that can override setting)
setting usevideoskin
 

Posted Fri 30 Jul 21 @ 3:55 pm
34%