Quick Sign In:  

Forum: General Discussion

Topic: Sampler script needed...

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

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..
 

geposted 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.
 

geposted Sat 08 Apr 17 @ 5:48 pm
Only 2 decks. Yes, while_pressed is the only way I can get it to work for now. Thanks for responding still.
 

geposted Sat 08 Apr 17 @ 6:07 pm
how long is the sample?
 

geposted Sat 08 Apr 17 @ 6:38 pm
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.
 

geposted Sat 08 Apr 17 @ 6:46 pm
AdionPRO InfinityCTOMember since 2006
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.
 

geposted Sat 08 Apr 17 @ 6:50 pm
Thank you dj magic. A little adjustment and it worked fine.
 

geposted Tue 11 Apr 17 @ 3:57 am


(Alte Themen und Foren werden automatisch geschlossen)