Welcome to %s forums

BrainModular Users Forum

Login Register

Simplest way to change speakers output from sampler file number

I need help on a Patch
Post Reply
creal
Member
Posts: 96
Contact:

Simplest way to change speakers output from sampler file number

Unread post by creal » 20 May 2022, 10:42

Hello,

I have a sampler containing 14 audio files. I would like to dispatch them to different speakers depending on the file.

For example: audio 1 => speakers 1&2 ; audio 3 => speakers 3&4, etc.

I have a dispatch module and I can use the file number outlet but I don't figure out how to make the conditional state (if audio file = 1, then select dispatch output 2, etc.).

What is the simplest way to get through this, please?

Thank you,

creal.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 20 May 2022, 13:39

an audio-mix-dispatch and data-scaling-mapper-value can do the trick I think ?

or math modules if the order is "logical" (think about the math-mod module)

in your example

for the left channel of the sampler:
audio-mix-dispatch.selector = (sampler.file-number*2) MOD number-of-audio-outputs

for the right channel of the sampler:
audio-mix-dispatch.selector = 1 + (sampler.file-number*2) MOD number-of-audio-outputs

creal
Member
Posts: 96
Contact:

Unread post by creal » 20 May 2022, 14:50

Oh yes, perfect. The data-scaling-mapper-value does the trick: an output number depending on an input number :)

I will take a look a the math-mod module too. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests