blinking; no possible way.
bpm is dynamic but only numbered beat difference not % beat difference,
so precision falls apart for fast or slow bpms [depending on which you're biased to]
Key difference is dynamic but not strict matches only compatible
Grouping isn't dynamic at all
I can't do any plugin tricks like sticky because setting colorRules can't be accessed by script.
you couldn't even have a scroll evaluate & send to sidelist thing due to how you've got multiple groupings on one track.
best you can do is build a string dynamically with bpm % range and strict key then cast that as text to a quick_filter.
It won't be colours only a quick filter & you'll have to pick the bones out of grouping, as that's unique to your workflow.
Oh you'll have toggle the filter as deck master track changes to update for any bpm changes.
custom_button
current bpm is +- 4%, you can change that with the numbers next to param_multiply
bpm is dynamic but only numbered beat difference not % beat difference,
so precision falls apart for fast or slow bpms [depending on which you're biased to]
Key difference is dynamic but not strict matches only compatible
Grouping isn't dynamic at all
I can't do any plugin tricks like sticky because setting colorRules can't be accessed by script.
you couldn't even have a scroll evaluate & send to sidelist thing due to how you've got multiple groupings on one track.
best you can do is build a string dynamically with bpm % range and strict key then cast that as text to a quick_filter.
It won't be colours only a quick filter & you'll have to pick the bones out of grouping, as that's unique to your workflow.
Oh you'll have toggle the filter as deck master track changes to update for any bpm changes.
custom_button
quick_filter 0 ? on & quick_filter off : off & get_text "Bpm < `param_multiply 1.04 'deck master get_bpm'` and Bpm > `param_multiply 0.96 'deck master get_bpm'` and key is `deck master get_key`" & param_cast 'text' & quick_filter
current bpm is +- 4%, you can change that with the numbers next to param_multiply
Posted Mon 07 Nov 22 @ 4:19 pm
locodog wrote :
A couple of ways, just chaining the queries is probably simplest
Thank you !
Posted Mon 07 Nov 22 @ 4:27 pm
Hi,
is there a way to get a true/false Value about get_status
has status true, has no status false
is there a way to get a true/false Value about get_status
has status true, has no status false
Posted Thu 10 Nov 22 @ 12:41 pm
first thought is compare against a blank string, I'll check now
*edit* yeah that does it.
*edit* yeah that does it.
param_equal `get_status` "" ? on : off
Posted Thu 10 Nov 22 @ 12:42 pm
Wow.. I've test so much things with param_equal and param_bigger the `` was the key :D....
There are many moment i cry with the Virtual DJ Script :D
THANK YOU
There are many moment i cry with the Virtual DJ Script :D
THANK YOU
Posted Thu 10 Nov 22 @ 12:46 pm
yeah the thing is with param_equal, it can do strings or actions, so while param_bigger doesn't need `` [but still can use] because it can't deal with strings and it uses '' or "" to encapsulate actions that include a space like
param_bigger 'get_var a' 'get_var b'
because param_equal can do strings, then it needs the action to be specified as an action, by wrapping in `` and strings wrapped in "" or ''
It's a little messy as a rule set but to clean it up would remove capabilities.
...script, it's a language, and languages have these weird nuances that a first are confusing but there's usually a reason as to why.
param_bigger 'get_var a' 'get_var b'
because param_equal can do strings, then it needs the action to be specified as an action, by wrapping in `` and strings wrapped in "" or ''
It's a little messy as a rule set but to clean it up would remove capabilities.
...script, it's a language, and languages have these weird nuances that a first are confusing but there's usually a reason as to why.
Posted Thu 10 Nov 22 @ 1:01 pm
Hi. Can a script count the number of letters in a string?
How many letters are there in the variable 'a'?
set_var 'a' "text"
How many letters are there in the variable 'a'?
Posted Sat 12 Nov 22 @ 1:45 am
setting another var to your first var with param_cast 'text' X, [X being the number of chars to cast] then comparing for equality.
truth be told you don't even need a 2nd var, same sort of idea but with param_equal
set_var 'a' "text" & set b `get_var a & param_cast 'text' 1` &
var_equal "a" "b" ? SIZE OF 1 :
set b `get_var a & param_cast 'text' 2` &
var_equal "a" "b" ? SIZE OF 2 :
set b `get_var a & param_cast 'text' 3` &
var_equal "a" "b" ? SIZE OF 3 :
set b `get_var a & param_cast 'text' 4` &
var_equal "a" "b" ? SIZE OF 4 :
truth be told you don't even need a 2nd var, same sort of idea but with param_equal
param_equal `get_var a` `get_var a & param_cast 'text' 1` ? SIZE OF 1 :
param_equal `get_var a` `get_var a & param_cast 'text' 2` ? SIZE OF 2 :
param_equal `get_var a` `get_var a & param_cast 'text' 3` ? SIZE OF 3 :
param_equal `get_var a` `get_var a & param_cast 'text' 4` ? SIZE OF 4 :
Posted Sat 12 Nov 22 @ 3:49 am
Perfect!!!
Posted Thu 17 Nov 22 @ 12:40 pm
locodog wrote :
param_equal `get_var a` `get_var a & param_cast 'text' 1` ? SIZE OF 1 :
param_equal `get_var a` `get_var a & param_cast 'text' 2` ? SIZE OF 2 :
param_equal `get_var a` `get_var a & param_cast 'text' 3` ? SIZE OF 3 :
param_equal `get_var a` `get_var a & param_cast 'text' 4` ? SIZE OF 4 :
Thank you !
Posted Thu 17 Nov 22 @ 1:18 pm
Someone asked for a midnight countdown video effect, but I was thinking that it would maybe be simpler to add it to a video skin
But that will need some scripting
I assume the value could then be taken from comparing 23:59:59 to get_clock cast to maybe an integer, then param_multiply -1 and param_add to get the difference, maybe adding the missing second, and then showing the value?
But I can only figure out how to do the first few steps...
But that will need some scripting
I assume the value could then be taken from comparing 23:59:59 to get_clock cast to maybe an integer, then param_multiply -1 and param_add to get the difference, maybe adding the missing second, and then showing the value?
But I can only figure out how to do the first few steps...
Posted Sun 04 Dec 22 @ 6:10 am
I've done it, I just need to remember how I did it.
*edit, I found it and I remember the problem now. It needs to be started at a known time.
[it monitors saved clock state v current clock and if different, -1 from the countdown, some maths, and resave new clock state]
Problem root is, get_clock, it returns a string so it will only cast the hour value as an int [the : breaks it]. And we've got nothing for casting substrings.
get_clock 'hour'
get_clock 'min'
get_clock 'sec'
would be one fix, for this specific problem, but that isn't real script currently.
param_cast 'text' SIZE INDEX
would be another more round about fix, it would have other uses too, but again doesn't exist.
I suppose it could be brute forced to get the time in a usable form but that would be pretty ugly.
[I'll see how it looks]
Or windows I could make a plugin
Posted Sun 04 Dec 22 @ 6:24 am