Accesso rapido:  

Forum: VirtualDJ Technical Support

Topic: Can someone help me with a script
I can't figure out how I get someting done. I want to start a sample but I want to stop the rest of the samples when that one is playing. So that there is only one sample playing at the time. Thanks for helping in me in advance.
 

Inviato Mon 18 Sep 23 @ 1:34 pm
There is actually a feature for that built into the software
You need to use groups. If you use sample groups, the other samples in the same group will stop when you trigger a new one
So you can basically add the samples you want to "stop each other" (only one sample playing at the time) to a group by right-clicking and assigning to a group
 

Inviato Mon 18 Sep 23 @ 1:43 pm
Here is an example
- Without a sample group
- With a sample group
- With a sample group + a sample outside the sample group
 

Inviato Mon 18 Sep 23 @ 1:48 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Script-wise, you can use the action sampler_stop all to stop all currently playing samples and then start whatever u want ..
E.g. sampler_stop all & sampler_play 1
 

Inviato Mon 18 Sep 23 @ 1:54 pm
Thank you! I will try this.
 

Inviato Wed 20 Sep 23 @ 1:05 pm
klausmogensen wrote :
Here is an example
- Without a sample group
- With a sample group
- With a sample group + a sample outside the sample group



This works!!! Thanks!!!
 

Inviato Wed 20 Sep 23 @ 1:10 pm