Forum: VirtualDJ Technical Support

For reporting any bug, questions or comment related to the latest version of VirtualDJ
(NOTE: VirtualDJ continuously updated, so many older topic on this forum are most probably already fixed in the current build)

If you need extended support, contact our Support Team.
Forum Guidelines  (*) The moderators hold the rights to move or modify posts in order to keep the discussions clear or to facilitate the search.
Topic: Make the sampler play loops like an arranger - Page: 1
Hello Guys, I wish if you can help me with this idea.
Given that I have 8 loops in my current sampler page, all are set into the same group so they will not play together which is what I really want.
But what can I do if - when playing a loop A and I want to switch to a loop B - as soon as I press on the loop B I want it to switch right on the next bar.
Example: beat A is on beat 2 of a bar when loop B is pressed, so it will finish the beat 3 and 4 of loop A and then switch automatically to loop B, the same way like a Korg pa3x arranger will do it. Is it possible? can anyone help me, please? Thank you :)

geposted Sat 23 Mar 19 @ 11:58 pm
Guys hello, no one has an idea how to do it :(? Is it impossible ?

geposted Mon 25 Mar 19 @ 10:45 pm
Hello, No Idea ?

geposted Mon 01 Apr 19 @ 7:26 am
AdionPRO InfinityCTOMember since 2006
Currently you have to switch on the right time manually. There's no automatic function to switch at the end of the loop

geposted Mon 01 Apr 19 @ 7:35 am
Thanks so much :). I'll keep doing it manually then. thank you

geposted Mon 01 Apr 19 @ 9:00 am
AdionPRO InfinityCTOMember since 2006
It might be something we add in the future though :)

geposted Mon 01 Apr 19 @ 9:02 am
Will be a great Idea. Anyway thumbs up for all the great work done so far. Thanks :)

geposted Mon 01 Apr 19 @ 9:04 am
locodogPRO InfinityModeratorMember since 2013
Something like this does it
on pad 1
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_play 1 & sampler select 1
on pad 2
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_position & param_bigger 0.98 ? sampler_play 2 & sampler select 2 & repeat_stop "rsSamplerSch" : nothing : sampler_play 2 & sampler select 2

geposted Mon 01 Apr 19 @ 9:40 am
locodog wrote :
Something like this does it
on pad 1
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_play 1 & sampler select 1
on pad 2
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_position & param_bigger 0.98 ? sampler_play 2 & sampler select 2 & repeat_stop "rsSamplerSch" : nothing : sampler_play 2 & sampler select 2


Thanks a lot Locodog, it is a good start, but it seems that when the pad 2 is hit it will wait for the sampler of the pad 1 to finish and then sampler 2 will show, rather than waiting for sampler 1 till the 4th beat of the running bar, because sometimes I have a loop with more than one bar. I appreciate it so much, I am not so good with scripting but I will try to start from here. Thanks again & again Locodog, you were always being helpful.

geposted Mon 01 Apr 19 @ 12:07 pm
locodogPRO InfinityModeratorMember since 2013
Starting a sample on the 4 is a bit odd, but anyway the value you want to change is
param_bigger 0.98

change to what depends on your sample length, playing a 4 beat sample to start the next sample on the 4 the value would be 0.75, a 8 beat sample would be 0.375

here's a pad on the 4 for samples 4,8 or 16 beats long
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.75 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 8 ? sampler_position & param_bigger 0.375 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 16 ? sampler_position & param_bigger 0.1875 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1

geposted Mon 01 Apr 19 @ 12:50 pm
locodog wrote :
Starting a sample on the 4 is a bit odd, but anyway the value you want to change is
param_bigger 0.98

change to what depends on your sample length, playing a 4 beat sample to start the next sample on the 4 the value would be 0.75, a 8 beat sample would be 0.375

here's a pad on the 4 for samples 4,8 or 16 beats long
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.75 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 8 ? sampler_position & param_bigger 0.375 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 16 ? sampler_position & param_bigger 0.1875 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1


Sorry not on the beginning of 4, I mean when the 4 ends. what should the value be then for the 4,8 and 16 beats long ??? I think 0.98, 0.49 & 0.245. right ?

geposted Mon 01 Apr 19 @ 1:08 pm
locodogPRO InfinityModeratorMember since 2013
I thought on the 4 was a bit odd :p

yeah those values should work ok.

geposted Mon 01 Apr 19 @ 1:32 pm
Thank you so much for your time and help. i will give a try the soonest.

geposted Mon 01 Apr 19 @ 1:43 pm
locodog wrote :
Starting a sample on the 4 is a bit odd, but anyway the value you want to change is
param_bigger 0.98

change to what depends on your sample length, playing a 4 beat sample to start the next sample on the 4 the value would be 0.75, a 8 beat sample would be 0.375

here's a pad on the 4 for samples 4,8 or 16 beats long
sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.75 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 8 ? sampler_position & param_bigger 0.375 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 16 ? sampler_position & param_bigger 0.1875 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1


I did this one, but it did not work: (I've only changed the numbers 0.75 - 0.375 & 0.1875 to 0.98 - 0.49 & 0.245):

sampler_play ? repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 8 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : sampler_loop "current" 16 ? sampler_position & param_bigger 0.245 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1

geposted Tue 02 Apr 19 @ 8:50 am
locodogPRO InfinityModeratorMember since 2013
My mistake, I missed a couple of bits
changes on at the end of the 4 if pressed early

sampler_play ? sampler_play 1 ? sampler_stop 1 : repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 8 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 16 ? sampler_position & param_bigger 0.245 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1

Changes at the end of the next 4, which I think is what you're actually after
sampler_play ? sampler_play 1 ? sampler_stop 1 : repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 8 ? sampler_position & param_smaller 0.51 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 16 ? sampler_position & param_smaller 0.255 ? sampler_position & param_bigger 0.245 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.51 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.765 ? sampler_position & param_bigger 0.735 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1

It looks complicated but it really isn't, just a lot of simple queries and commands.

geposted Tue 02 Apr 19 @ 12:25 pm
Thank you :) I will try it and get back soon with the feedback.

geposted Tue 02 Apr 19 @ 12:41 pm
locodogPRO InfinityModeratorMember since 2013
Slight edit (this and my previous) I missed the sample stop condition

sampler_play
..? sampler_play 1
....? sampler_stop 1
....: repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4
......? sampler_position & param_bigger 0.98
........? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
........: nothing
......: sampler_loop "current" 8
........? sampler_position & param_smaller 0.51
..........? sampler_position & param_bigger 0.49
............? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
............: nothing
..........: sampler_position & param_bigger 0.98
............? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
............: nothing
........: sampler_loop "current" 16
..........? sampler_position & param_smaller 0.255
............? sampler_position & param_bigger 0.245
..............? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
..............: nothing
............: sampler_position & param_smaller 0.51
..............? sampler_position & param_bigger 0.49
................? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
................: nothing
..............: sampler_position & param_smaller 0.765
................? sampler_position & param_bigger 0.735
..................? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
..................: nothing
................: sampler_position & param_bigger 0.98
..................? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch"
..................: nothing
..........: nothing
..: sampler_play 1 & sampler select 1

geposted Tue 02 Apr 19 @ 1:02 pm
I've copied your script to try to do a 32 beats form, thanks to your script, it worked like a charm just 9999% what I need. Thanks a lot now I have my own arranger inside VirtualDJ, what a powerful software, unbelievable.

This is the script for 4,8,16 & 32 beats long

sampler_play ? sampler_play 1 ? sampler_stop 1 : repeat_start "rsSamplerSch" 33ms & sampler_loop "current" 4 ? sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 8 ? sampler_position & param_smaller 0.51 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 16 ? sampler_position & param_smaller 0.255 ? sampler_position & param_bigger 0.245 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.51 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.765 ? sampler_position & param_bigger 0.735 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_loop "current" 32 ? sampler_position & param_smaller 0.1275 ? sampler_position & param_bigger 0.1225 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.255 ? sampler_position & param_bigger 0.245 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.3825 ? sampler_position & param_bigger 0.3675 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.51 ? sampler_position & param_bigger 0.49 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.6375 ? sampler_position & param_bigger 0.6125 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.765 ? sampler_position & param_bigger 0.735 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_smaller 0.8925 ? sampler_position & param_bigger 0.8575 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : sampler_position & param_bigger 0.98 ? sampler_play 1 & sampler select 1 & repeat_stop "rsSamplerSch" : nothing : nothing : sampler_play 1 & sampler select 1


geposted Tue 02 Apr 19 @ 8:40 pm
locodogPRO InfinityModeratorMember since 2013
Nice one, when you see a "wall of text" scripts can look impossible to understand but when you see scripts as a logic tree, it becomes much clearer.
Well done on expanding it :)

*side note* Djratedxxx919 was after something like this for his remix decks project, it's a shame I've lost the skin. ¯\_(ツ)_/¯.

geposted Tue 02 Apr 19 @ 9:15 pm
locodog wrote :
Nice one, when you see a "wall of text" scripts can look impossible to understand but when you see scripts as a logic tree, it becomes much clearer.
Well done on expanding it :)


*side note* Djratedxxx919 was after something like this for his remix decks project, it's a shame I've lost the skin. ¯\_(ツ)_/¯.



You are right , when seeing it as a tree it becomes easier.
For the remix decks project, I was following the thread it will be great if it has a happy end.
For now, I appreciate a lot your efforts :). Hats off to you.




geposted Tue 02 Apr 19 @ 9:43 pm
Seite : [>] [>>]
65%