@locodog used this in a script
Notice the backquote ` before the get_bpm inside the single quotes.
What exactly does that do. I noticed it doesn't set the value without it.
This works above too so what if I wanted to get the BPM from not the active deck but the default deck?
OK got part of the answer:
but still curious what the backquote does (guessing the get_bpm in quotes needs to be sent as a variable and the back quote makes it into a vdj command to run inside the variable)
Tx
set 'var1' '`get_bpm'
Notice the backquote ` before the get_bpm inside the single quotes.
What exactly does that do. I noticed it doesn't set the value without it.
set '$BeatActive' '`get_bpm'
This works above too so what if I wanted to get the BPM from not the active deck but the default deck?
OK got part of the answer:
set '$BeatDefault' '`deck default get_bpm'
but still curious what the backquote does (guessing the get_bpm in quotes needs to be sent as a variable and the back quote makes it into a vdj command to run inside the variable)
Tx
geposted Thu 26 Jan 17 @ 10:51 pm
set "varName" is expecting a number, the backticks tell the script I'm not giving you a number directly I'm giving you an action, that when you perform the action you'll get a number, not everything will allow this type of scripting, set does and erm there's a couple of others.
I can't tell you how long it too for me to trial and error that one, even now I if it doesn't work first time, I try all kinds of combos [wrapped in quotes and a single tick, wrapped in quotes and ticks, wrapped in ticks,
if you look at pad names you'll see they often use backticks, the pad name is expecting a string, you tell it perform an action to get that string
I can't tell you how long it too for me to trial and error that one, even now I if it doesn't work first time, I try all kinds of combos [wrapped in quotes and a single tick, wrapped in quotes and ticks, wrapped in ticks,
if you look at pad names you'll see they often use backticks, the pad name is expecting a string, you tell it perform an action to get that string
geposted Thu 26 Jan 17 @ 11:15 pm
Great thanks because I'm working on a bigger picture and will post it as a new topic.
geposted Thu 26 Jan 17 @ 11:17 pm
check this one out from accord [pad1 match key & search bpm range +-3%
search '`deck default get_harmonic` `get_bpm & param_multiply 0.97`-`get_bpm & param_multiply 1.03`'
search, search expects a string so it has to be wrapped in single quotes [or double] first an action in backticks, then a space [we're still inside the string quotes so the space is part of the string, get bpm and *0.97 again in backticks, a minus sign [still part of the string, searching bpm ranges needs X-Y formatting], another get_bpm & * in backticks and then close the string
If you want to make your brain hurt look at this, accord param2 name , to show the key or if the track has no registered key [so nothing between the 2 single quotes] get custom text saying "no key"
`shift ? param_equal get_browsed_song 'harmonic' '' ? get_custom_text "No Key" : get_text "`get_browsed_song 'harmonic'` `get_browsed_song 'key'`" : param_equal get_harmonic '' ? get_text 'No Key' : get_text "`deck default get_harmonic` `deck default get_key`"`
I'm going a bit crosseyed myself looking at that again
search '`deck default get_harmonic` `get_bpm & param_multiply 0.97`-`get_bpm & param_multiply 1.03`'
search, search expects a string so it has to be wrapped in single quotes [or double] first an action in backticks, then a space [we're still inside the string quotes so the space is part of the string, get bpm and *0.97 again in backticks, a minus sign [still part of the string, searching bpm ranges needs X-Y formatting], another get_bpm & * in backticks and then close the string
If you want to make your brain hurt look at this, accord param2 name , to show the key or if the track has no registered key [so nothing between the 2 single quotes] get custom text saying "no key"
`shift ? param_equal get_browsed_song 'harmonic' '' ? get_custom_text "No Key" : get_text "`get_browsed_song 'harmonic'` `get_browsed_song 'key'`" : param_equal get_harmonic '' ? get_text 'No Key' : get_text "`deck default get_harmonic` `deck default get_key`"`
I'm going a bit crosseyed myself looking at that again
geposted Thu 26 Jan 17 @ 11:30 pm
I had to pull out my decryptor ring for that. Never heard of accord and at first was thinking it was a posters name then I found the accord plugin. Nice and somehow when I was looking at the many plugins I overlooked that one. I just installed it and it's interesting how it works. It wasn't working at first and was looking at exactly what it did then I noticed VDJ defaulted to not search by key & bpm so I had to enable that first for it to work. I feel like I'm at a candy factory with VDJ from seeing all the nice addons and scripts and how it's matured over time. Thanks for pulling out the info on the search tricks in scripting.
Side note: VDJ is just so close to a 5 star in my book. When it makes my mobile jobs easier by doing some half decent mixes while I'm so busy with MCing. One way this can happen if the scripting matures a bit more that it's easier to create more complex scripts in a shorter time with better debugging past the var_list trick. Another way is if the backup audio content I use from Content Unlimited pulls up more songs since I play a very wide gamut of genres.
Side note: VDJ is just so close to a 5 star in my book. When it makes my mobile jobs easier by doing some half decent mixes while I'm so busy with MCing. One way this can happen if the scripting matures a bit more that it's easier to create more complex scripts in a shorter time with better debugging past the var_list trick. Another way is if the backup audio content I use from Content Unlimited pulls up more songs since I play a very wide gamut of genres.
geposted Fri 27 Jan 17 @ 3:41 am