<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2018-02-23 13:02 GMT-03:00 Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Wow, that's <b>exactly</b> what I needed :) it couldn't be easier than that for me, haha, thanks!</div></div></div></div></blockquote><div><br></div><div>Well, it got hard again. I actually needed an extra main signal inlet, so, when I added it, I managed to make it work and build and stuff... but now, if I  change the number of channels (that is, if I recreate the object with a different argument), Pd can freeze or blow up... so I screwed it somehow. Here's the code: <a href="https://github.com/porres/pd-else/blob/master/classes/mtx~.c">https://github.com/porres/pd-else/blob/master/classes/mtx~.c</a> - <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I don't know if it's something to do with the "free" method, or something inside the "dsp" method, that's all I can think but I've also already done all I could take a wild guess on.</span></div><div><br></div><div>On the other hand, I made progress with my previous way of trying to do this. Instead of a split and mirrored output, say 1 2 3 | 3 2 1, I'm now able to get an exact copy of the input, but reversed. Say the input is "1 2 3 4 5 6", I get "6 5 4 3 2 1". </div><div><br></div><div>Ok, so I see a way around would be to have a temporary array and rearrange things over. Well, I tried all possible combinations to not have that inverted result, nothing worked... so either I missed something or it's just that I really need a temporary array to rearrange things. Now, I also tried that in every way I could take a guess, but failed miserably, here's the blunt truth, I can't really code, so I need a pretty straightforward example for me to work on and develop on it, like: <a href="https://github.com/pierreguillot/pd.dummies/blob/master/src/leeloo_tilde.c" target="_blank" style="font-size:12.8px">https://github.com/pierregui<wbr>llot/pd.dummies/blob/master/<wbr>src/leeloo_tilde.c</a> - or also some fix to this code on my repository: here's the issue and link to the code:  <a href="https://github.com/porres/pd-else/issues/161">https://github.com/porres/pd-else/issues/161</a></div><div><br></div><div>Yeah, I know, if only one could give me a hint and I'd fix it myself, but sorry, I'm not there yet. So I hope someone can give me a fix in either of the two attempts.</div><div><br></div><div>By the way, the end goal is not to have this silly multi channel gate object, but more of an automatic fade in/out for multi-channel files. I got all the rest worked out, but I need to get over this obstacle... yeah, I would know how to do this as a patch, but, well, I'm trying to learn how to make externals ;) </div><div><br></div><div>thanks</div></div></div></div>