Hi Pablo, I have coded a 16x16 crosspoint audio matrix for my wannabe EMS Synthi A patch. Unfortunately it takes 40% of the DSP power and a lot of memory but it works. It’s a bit “hot”, summing several inputs can saturate easily so you must pay attention to this. I’m not an expert programmer so maybe an Axo guru like @SmashedTransistors , @lokki or others can take a look at the code. It’s based on the bin16 parameter. The k rate routine analyzes the 256 pins and put the value in a bool vector, the s rate makes the sum of the columns to the 16 output. The downside of this method is that even if the matrix is empty the DSP load is maximum. I tried to get rid of the 0 addend without success, however a dynamic DSP load might be difficult to handle. You can have also a 12x12 or an N x12 or N x16 with this method with different use of resources.
Maybe I will post the 12x12 in the following days with my attempt to emulate the EMS synthi A.
I can’t do it now because it uses custom objects not in the library so I have to let them editable.
16x16 crosspoint.axp (27.1 KB)