Hi,
Trying to relearn VDJ script and I have this code I created.
Problem is I'm not sure why it increases the sample volume to 100% but doesn't decrease back to 0% it after it goes full volume
Here is the sShort version of the above code to paste into VDJ:
Trying to relearn VDJ script and I have this code I created.
Problem is I'm not sure why it increases the sample volume to 100% but doesn't decrease back to 0% it after it goes full volume
set "$VolumeFull" 0 &
sampler_volume 2 0% &
sampler_bank "INSTRUMENTS" &
sampler_play "KICK HARD" &
repeat_start_instant 'levelSweep' 50ms 202 &
sampler_volume 2 &
param_bigger 99% ?
set "$VolumeFull" 1
: var "$VolumeFull" ?
sampler_volume 1 &
param_bigger 99% ?
sampler_stop all &
repeat_stop 'levelSweep'
: sampler_volume 2 -1%
: sampler_volume 2 +1%
Here is the sShort version of the above code to paste into VDJ:
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" & repeat_start_instant "levelSweep" 50ms 202 & sampler_volume 2 & param_bigger 99% ? set "$VolumeFull" 1 :var "$VolumeFull" ? sampler_volume 2 & param_smaller 1% ? sampler_stop all & repeat_stop "levelSweep" : sampler_volume 2 -1% : sampler_volume 2 +1%
Posted Mon 13 Jan 20 @ 1:11 am
breakdown doesn't match the copy pasta, copy pasta has a space missing between
:var "$VolumeFull" ?
I tried to stick to sort of how you formed the query but it was an recursive impossibility
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" &
repeat_start_instant "levelSweep" 50ms 202 & var "$VolumeFull" 0 ?
sampler_volume 2 & param_bigger 99% ?
set "$VolumeFull" 1 :
sampler_volume 2 +1% :
sampler_volume 2 & param_smaller 1% ?
sampler_stop all & repeat_stop "levelSweep" :
sampler_volume 2 -1%
:var "$VolumeFull" ?
I tried to stick to sort of how you formed the query but it was an recursive impossibility
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" &
repeat_start_instant "levelSweep" 50ms 202 & var "$VolumeFull" 0 ?
sampler_volume 2 & param_bigger 99% ?
set "$VolumeFull" 1 :
sampler_volume 2 +1% :
sampler_volume 2 & param_smaller 1% ?
sampler_stop all & repeat_stop "levelSweep" :
sampler_volume 2 -1%
Posted Mon 13 Jan 20 @ 1:40 am
I'll try give you a breakdown where you went wrong
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" & repeat_start_instant "levelSweep" 50ms 202 & sampler_volume 2 & param_bigger 99% [PROBLEM 1] ? set "$VolumeFull" 1 [PROBLEM 2] : var "$VolumeFull" ? sampler_volume 2 & param_smaller 1% ? sampler_stop all & repeat_stop "levelSweep" : sampler_volume 2 -1% : sampler_volume 2 +1%
[PROBLEM 1]This case the first query is most important and param_bigger is only important for half the duration, var "$VolumeFull" ? is most important [used for full duation], if we're false then we're still going up, if true then we're going down
[PROBLEM 2] It gets here after going up and nothing else is going to happen, the bigger query is true so it will just keep setting the var.
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" & repeat_start_instant "levelSweep" 50ms 202 & sampler_volume 2 & param_bigger 99% [PROBLEM 1] ? set "$VolumeFull" 1 [PROBLEM 2] : var "$VolumeFull" ? sampler_volume 2 & param_smaller 1% ? sampler_stop all & repeat_stop "levelSweep" : sampler_volume 2 -1% : sampler_volume 2 +1%
[PROBLEM 1]This case the first query is most important and param_bigger is only important for half the duration, var "$VolumeFull" ? is most important [used for full duation], if we're false then we're still going up, if true then we're going down
[PROBLEM 2] It gets here after going up and nothing else is going to happen, the bigger query is true so it will just keep setting the var.
Posted Mon 13 Jan 20 @ 1:56 am
Excellent Thanks @locodog.
I actually found another error in my code and got it to move the volume up and down but couldn't turn of the sampler. Yours works great. I'm going to look over it now.
Thanks again!
I actually found another error in my code and got it to move the volume up and down but couldn't turn of the sampler. Yours works great. I'm going to look over it now.
Thanks again!
Posted Mon 13 Jan 20 @ 1:59 am
Odd thing though. I can't isolate the volume of the single instrument "Kick Hard". On the default install of VDJ,2020 there is are 12 default instruments in the sampler tab. Any idea how to just move up and down the single "Kick Hard" instrument?
Thanks
Thanks
Posted Mon 13 Jan 20 @ 12:58 pm
I ditched that bank but I think it's a grouped sample so use
sampler_volume_nogroup
sampler_volume_nogroup
Posted Mon 13 Jan 20 @ 1:05 pm
Once again perfect, that did the trick. Do you have an instrument bank you installed instead of the default?
Thanks.
Thanks.
Posted Mon 13 Jan 20 @ 8:32 pm
I've just a load of amen break loops & a few drum kits. But all the defaults went to the recycle bin.
Posted Mon 13 Jan 20 @ 8:42 pm
meh, why I don't know but, earlier solution is more efficient
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" &
repeat_start_instant "levelSweep" 50ms 202 & sampler_volume 2 & param_bigger 99% ? set "$VolumeFull" 1 & sampler_volume 2 -1% : var "$VolumeFull" ? sampler_volume 2 & param_smaller 1% ? sampler_stop all & repeat_stop "levelSweep" : sampler_volume 2 -1% : sampler_volume 2 +1%
set "$VolumeFull" 0 & sampler_volume 2 0% & sampler_bank "INSTRUMENTS" & sampler_play "KICK HARD" &
repeat_start_instant "levelSweep" 50ms 202 & sampler_volume 2 & param_bigger 99% ? set "$VolumeFull" 1 & sampler_volume 2 -1% : var "$VolumeFull" ? sampler_volume 2 & param_smaller 1% ? sampler_stop all & repeat_stop "levelSweep" : sampler_volume 2 -1% : sampler_volume 2 +1%
Posted Tue 14 Jan 20 @ 2:23 am