快速登录:  

Forum: VirtualDJ Technical Support

话题: 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 :)
 

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

发表时间 Mon 25 Mar 19 @ 10:45 pm
Hello, No Idea ?
 

发表时间 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
 

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

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

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

发表时间 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
 

发表时间 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.
 

发表时间 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
 

发表时间 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 ?
 

发表时间 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.
 

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

发表时间 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
 

发表时间 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.
 

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

发表时间 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
 

发表时间 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

 

发表时间 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. ¯\_(ツ)_/¯.
 

发表时间 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.



 

发表时间 Tue 02 Apr 19 @ 9:43 pm
65%