Page 1 of 1

Simplest way to change speakers output from sampler file number

Posted: 20 May 2022, 10:42
by creal
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.

Re: Simplest way to change speakers output from sampler file number

Posted: 20 May 2022, 13:39
by senso
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

Re: Simplest way to change speakers output from sampler file number

Posted: 20 May 2022, 14:50
by creal
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.