Welcome to %s forums

BrainModular Users Forum

Login Register

Array shuffle

I need help on a Patch
Post Reply
Gilsornette
Member
Posts: 280
Contact:

Array shuffle

Post by Gilsornette » 28 Mar 2026, 12:42

Hello,

I'm using a 6x6 audio mix matrix in mode faders. Some of my cells/faders are at the minimum (value=0) , and a few have a non 0 value. I'd like to shuffle those values between
their respective positions (cells/faders at 0don't move). What could be the simplest way to achieve that?
It's easy to identify the cells with value =0 (module find index) but not so simple (seems to me...) to identify cells that are non 0 values.
Wouldn't it be fine to have on module find index an option to search non 0 values indexes?
I hope it's clear...
Thanks in advance

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 28 Mar 2026, 14:59

Like that ?
shuffle if non zero.wkp
(116.69 KiB) Downloaded 19 times
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Post by Gilsornette » 28 Mar 2026, 16:42

Exactly! Why had I never noticed this "fill -1 if not found" input?:-) That's what I was looking for...
Thank you Olivar!

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests