Welcome to %s forums

BrainModular Users Forum

Login Register

Buton to play sample

I need help on a Patch
Post Reply
User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Sep 2010, 17:30

I'd like to build a patch with 3 buton and each of them play a different sample.
I have one sampler stereo with 3 sound file.
I would like to have 3 buton, one for each file.

The buton1 select the first sound file in the list (number 0) and play it
The buton2 select the second sound file in the list (number 1) and play it
The Buton3 select the third sound file in the list (number 2) and play it
....

It seems to be very simple but i can't find a solution. I try without succes with Math Module, from 0 to 1, from 1 to 0 .... :mad:

I need a little help.
Thanks

headphoner
Member
Posts: 225
Contact:

Unread post by headphoner » 22 Sep 2010, 17:55

Hi,

did you tried the multiple variable module ?

put an "has changed" to the out it will send 1 to the play sampler

Works fine

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 Sep 2010, 18:26

yep, something like this :
( this is for play button mode , if you use the loop mode , you can delete the has change module)

Image

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Sep 2010, 18:48

YES !!! Great !
It's work fine. Exactelly what i need !

I had to take a look at the manual to know all the module ....

Thank you very much.:D

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Sep 2010, 19:01

Even in Play mode i don' need a 'has change''.
I use a ''Wait one cycle'' to be sure that the sound file is selected before playing.
It works fine.

Thank you very much.

Image

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 22 Sep 2010, 19:05

Btwn with new V5 buttons, you can simplify and get rid of multivar, simply enter the sample nb as button on value,
enabling "null evt if off'. however if sample nb is 0 (have to put -1 has off value), slighty lower CPU i think
Image

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 Sep 2010, 20:03

right !
often forget that button have same features than switches now !
1 point for you ;-)

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 23 Sep 2010, 09:53

Wahou !! Beautiful !!!

i forgot the new features of the Buton.
I will try it immediatly.

Thanks.

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 23 Sep 2010, 13:49

I have a new question about this patch.

The buton1 play sampl1. But if i want to re-play the sample 1 before play an other one i can't becuse there is no change in the ''has change'' module.

How can ido that ?
i could just ad a play buton directly connected to the play of the sampler, but i want to remote the 3 butons with a control surface ...

thanks

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Sep 2010, 14:10

this can do the job :
( same system of course for on/off value )
Image

oops, forget it .........don't see about the midi learn...

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Sep 2010, 14:30

so back to old methods...
my first patch works whith midi learn...

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests