ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2025-09-18T08:27:47+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/7391 2025-09-18T08:27:47+02:00 2025-09-18T08:27:47+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46020#p46020 <![CDATA[Re: routing and replace]]> Statistics: Posted by Gilsornette — 18 Sep 2025, 08:27


]]>
2025-09-17T21:40:15+02:00 2025-09-17T21:40:15+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46018#p46018 <![CDATA[Re: routing and replace]]> too bad for the challenge, here is a cyclic switch that manages polyphony without midi.

You'll need Modulilab addon because of the addsr module.

I let you test it for bugs

cheers

Olivar
cyclic permutator sampler.pat

Statistics: Posted by oli_lab — 17 Sep 2025, 21:40


]]>
2025-09-13T15:41:14+02:00 2025-09-13T15:41:14+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46015#p46015 <![CDATA[Re: routing and replace]]>

Statistics: Posted by Gilsornette — 13 Sep 2025, 15:41


]]>
2025-09-12T15:45:21+02:00 2025-09-12T15:45:21+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46013#p46013 <![CDATA[Re: routing and replace]]> please note that the part that goes from the array output of the matrix is just here because I plan to use this patch with an OSC interface.

if you're planning to use this patch with a panel matrix and you intend to click directly on it, you can use this mod :
Capture d'écran 2025-09-12 153915.png
cheers

Olivar

Statistics: Posted by oli_lab — 12 Sep 2025, 15:45


]]>
2025-09-11T10:46:37+02:00 2025-09-11T10:46:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46008#p46008 <![CDATA[Re: routing and replace]]>

Statistics: Posted by Gilsornette — 11 Sep 2025, 10:46


]]>
2025-09-11T10:19:18+02:00 2025-09-11T10:19:18+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46007#p46007 <![CDATA[Re: routing and replace]]>
@grego : thank you for your patch!

It seems to me that it'd be interesting to have a data dispatch object and a data expand object as they exist for Midi. What do you think about this? Shall I ask for it in suggestions?
I did a Midi demux module some time ago, it shouldn't be too much trouble to adapt it for non midi datas : I may look into it soonish !

Another way would be to use the procedure thing : each time a cell is changed, the procedure will go thru each element of an array to check if there is an empty slot, otherwise remove the older taken one : it is a good challenge to learn procedure !

Olivar

Statistics: Posted by oli_lab — 11 Sep 2025, 10:19


]]>
2025-09-11T09:16:44+02:00 2025-09-11T09:16:44+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46006#p46006 <![CDATA[Re: routing and replace]]>
It seems to me that it'd be interesting to have a data dispatch object and a data expand object as they exist for Midi. What do you think about this? Shall I ask for it in suggestions?

Statistics: Posted by Gilsornette — 11 Sep 2025, 09:16


]]>
2025-09-10T10:39:53+02:00 2025-09-10T10:39:53+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46000#p46000 <![CDATA[Re: routing and replace]]> I used to use a data dispatch with has changed incrementing the destination voice (out 1, then 2 then 3, ...) to get in a sub patch
dispatch selector.PNG

Statistics: Posted by grego mondo — 10 Sep 2025, 10:39


]]>
2025-09-10T10:14:31+02:00 2025-09-10T10:14:31+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=45998#p45998 <![CDATA[Re: routing and replace]]> Statistics: Posted by Gilsornette — 10 Sep 2025, 10:14


]]>
2025-09-10T00:07:54+02:00 2025-09-10T00:07:54+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=45994#p45994 <![CDATA[Re: routing and replace]]> You have to use an array of 8 elements.
when a cell is set to 1, the array store the number of the cell
when the cell is release, your patch must search the element in the array that is of value the number of the cell then set it to -1
when you click on another cell, the patch search for the first element that is of value = -1 and replace it by the index of the new cell.

Actually, the "midi dispatch" just do that, so you could simply transform the click cell info into midi note on or off (data1 being the index of the cell)

see the workspace (works for 4x4 matrix, but can be easily hacked)

Statistics: Posted by oli_lab — 10 Sep 2025, 00:07


]]>
2025-09-09T18:07:47+02:00 2025-09-09T18:07:47+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=45993#p45993 <![CDATA[routing and replace]]>
I use a matrix 8x8 and I'd like 1st clicked Cell to be routed to subpatch 1, 2nd Clicked cell to subpatch 2, and so until 8th clicked cell is routed to subpatch 8.
I also want that if I release Cell 3 then 6 and that I click on two new cells those one are routed to subpatch 3 and 6 . And I can't achieve to do this.
I've tried with counter and array, but without convincing result.
Do you have ideas ? I
thank you
-

Statistics: Posted by Gilsornette — 09 Sep 2025, 18:07


]]>
BrainModular BrainModular Users Forum 2025-09-18T08:27:47+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/7391 2025-09-18T08:27:47+02:00 2025-09-18T08:27:47+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46020#p46020 <![CDATA[Re: routing and replace]]> Statistics: Posted by Gilsornette — 18 Sep 2025, 08:27


]]>
2025-09-17T21:40:15+02:00 2025-09-17T21:40:15+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46018#p46018 <![CDATA[Re: routing and replace]]> too bad for the challenge, here is a cyclic switch that manages polyphony without midi.

You'll need Modulilab addon because of the addsr module.

I let you test it for bugs

cheers

Olivar
cyclic permutator sampler.pat

Statistics: Posted by oli_lab — 17 Sep 2025, 21:40


]]>
2025-09-13T15:41:14+02:00 2025-09-13T15:41:14+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46015#p46015 <![CDATA[Re: routing and replace]]>

Statistics: Posted by Gilsornette — 13 Sep 2025, 15:41


]]>
2025-09-12T15:45:21+02:00 2025-09-12T15:45:21+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46013#p46013 <![CDATA[Re: routing and replace]]> please note that the part that goes from the array output of the matrix is just here because I plan to use this patch with an OSC interface.

if you're planning to use this patch with a panel matrix and you intend to click directly on it, you can use this mod :
Capture d'écran 2025-09-12 153915.png
cheers

Olivar

Statistics: Posted by oli_lab — 12 Sep 2025, 15:45


]]>
2025-09-11T10:46:37+02:00 2025-09-11T10:46:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46008#p46008 <![CDATA[Re: routing and replace]]>

Statistics: Posted by Gilsornette — 11 Sep 2025, 10:46


]]>
2025-09-11T10:19:18+02:00 2025-09-11T10:19:18+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46007#p46007 <![CDATA[Re: routing and replace]]>
@grego : thank you for your patch!

It seems to me that it'd be interesting to have a data dispatch object and a data expand object as they exist for Midi. What do you think about this? Shall I ask for it in suggestions?
I did a Midi demux module some time ago, it shouldn't be too much trouble to adapt it for non midi datas : I may look into it soonish !

Another way would be to use the procedure thing : each time a cell is changed, the procedure will go thru each element of an array to check if there is an empty slot, otherwise remove the older taken one : it is a good challenge to learn procedure !

Olivar

Statistics: Posted by oli_lab — 11 Sep 2025, 10:19


]]>
2025-09-11T09:16:44+02:00 2025-09-11T09:16:44+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46006#p46006 <![CDATA[Re: routing and replace]]>
It seems to me that it'd be interesting to have a data dispatch object and a data expand object as they exist for Midi. What do you think about this? Shall I ask for it in suggestions?

Statistics: Posted by Gilsornette — 11 Sep 2025, 09:16


]]>
2025-09-10T10:39:53+02:00 2025-09-10T10:39:53+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=46000#p46000 <![CDATA[Re: routing and replace]]> I used to use a data dispatch with has changed incrementing the destination voice (out 1, then 2 then 3, ...) to get in a sub patch
dispatch selector.PNG

Statistics: Posted by grego mondo — 10 Sep 2025, 10:39


]]>
2025-09-10T10:14:31+02:00 2025-09-10T10:14:31+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=45998#p45998 <![CDATA[Re: routing and replace]]> Statistics: Posted by Gilsornette — 10 Sep 2025, 10:14


]]>
2025-09-10T00:07:54+02:00 2025-09-10T00:07:54+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=45994#p45994 <![CDATA[Re: routing and replace]]> You have to use an array of 8 elements.
when a cell is set to 1, the array store the number of the cell
when the cell is release, your patch must search the element in the array that is of value the number of the cell then set it to -1
when you click on another cell, the patch search for the first element that is of value = -1 and replace it by the index of the new cell.

Actually, the "midi dispatch" just do that, so you could simply transform the click cell info into midi note on or off (data1 being the index of the cell)

see the workspace (works for 4x4 matrix, but can be easily hacked)

Statistics: Posted by oli_lab — 10 Sep 2025, 00:07


]]>
2025-09-09T18:07:47+02:00 2025-09-09T18:07:47+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7391&p=45993#p45993 <![CDATA[routing and replace]]>
I use a matrix 8x8 and I'd like 1st clicked Cell to be routed to subpatch 1, 2nd Clicked cell to subpatch 2, and so until 8th clicked cell is routed to subpatch 8.
I also want that if I release Cell 3 then 6 and that I click on two new cells those one are routed to subpatch 3 and 6 . And I can't achieve to do this.
I've tried with counter and array, but without convincing result.
Do you have ideas ? I
thank you
-

Statistics: Posted by Gilsornette — 09 Sep 2025, 18:07


]]>