Ingresar:     


Forum: General Discussion

Tópico: Sampler script needed...

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

Anyone know of or how to make a script for when a Sampler button is press (not while_pressed) the deck level volumes go low or completely off until the Sampler stop playing? Amy help will be appreciated..
 

Mensajes Sat 08 Apr 17 @ 5:43 pm
you want the deck volume to go down while the sample is being played?

or did i understand that correctly?

also how many decks are you using?

if what i suspect, is what you what i know of only a while pressed to accomplish it.
 

Only 2 decks. Yes, while_pressed is the only way I can get it to work for now. Thanks for responding still.
 

how long is the sample?
 

here is a sample that I use (quick less than 1sec sample) that lowers the volume level to 25% then it goes back to 100% (sampler finish playing by then1

sampler_bank "WHATEVER FOLDER THE SAMPLE IS" & level 25% & sampler_play_stop 1 (my case is bank 1) & repeat_start "WaitTimer" 500ms 1 & level 100%

Now, in your case, you need to adjust that 500ms (for how long that sampler is)

What's actually happening when the button is pressed is:

Volume goes down to 25% (adjust this to your liking)
Plays the sample (adjust the 500ms to fit your need)
Volume goes 100% when the TIMER of 500ms is done (meaning, sample should be done playing then)


Hope I made sense.
 

You could also make the timer check every 30ms if the sample is still playing, and stop the timer and reset the volume if it isn't.
 

Thank you dj magic. A little adjustment and it worked fine.
 



(Los tópicos y foros antiguos son automáticamente cerrados)