For some reason your response didn't show up in my email Cristof, but to answer your question, I am providing two creation arguments that sets the number of inlets and outlets. Could you elaborate on how buffer aliasing is caused by how the surrounding objects are connected? Assuming of course that's the problem here, but my suspicion is rather that I'm not reading from all inlets before writing to the outlets.
On Sun, May 31, 2020 at 12:14 PM <[email protected]> wrote: > Send Pd-dev mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.puredata.info/listinfo/pd-dev > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pd-dev digest..." > > > Today's Topics: > > 1. inlets sending to wrong outlets (Eric Lennartson) > 2. Re: inlets sending to wrong outlets (Alexandre Torres Porres) > 3. Re: inlets sending to wrong outlets (Eric Lennartson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 31 May 2020 11:59:54 -0700 > From: Eric Lennartson <[email protected]> > To: pd-dev <[email protected]> > Subject: [PD-dev] inlets sending to wrong outlets > Message-ID: > <CAGkKnE1H0Cnto7iFVLs= > [email protected]> > Content-Type: text/plain; charset="utf-8" > > Hey all, > > I've been working with variable amounts of inlets and outlets and for the > most part it's been working fine. If it's only variable inlets and the > outlets are fixed, or vice versa, it works fine. However when both are > variable I can't seem to get the inlets to go to the correct outlet. My > current code is cycling through the inlets and outlets in pairs, but for > some reason this isn't working. Any thoughts? > > Thanks > Eric > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.puredata.info/pipermail/pd-dev/attachments/20200531/18776bbd/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Sun, 31 May 2020 16:05:30 -0300 > From: Alexandre Torres Porres <[email protected]> > To: Eric Lennartson <[email protected]> > Cc: pd-dev <[email protected]> > Subject: Re: [PD-dev] inlets sending to wrong outlets > Message-ID: > < > caeasfmgbrt2ihccm2svml8h4ghx-bweo9rl1znmozijbyhv...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > I remember I went through similar stuff, see the code of else/mtx~ and > cyclone/matrix~ > > and, share your code? > > cheers > > Em dom., 31 de mai. de 2020 às 16:00, Eric Lennartson < > [email protected]> escreveu: > > > Hey all, > > > > I've been working with variable amounts of inlets and outlets and for the > > most part it's been working fine. If it's only variable inlets and the > > outlets are fixed, or vice versa, it works fine. However when both are > > variable I can't seem to get the inlets to go to the correct outlet. My > > current code is cycling through the inlets and outlets in pairs, but for > > some reason this isn't working. Any thoughts? > > > > Thanks > > Eric > > _______________________________________________ > > Pd-dev mailing list > > [email protected] > > https://lists.puredata.info/listinfo/pd-dev > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.puredata.info/pipermail/pd-dev/attachments/20200531/b94e1564/attachment-0001.html > > > > ------------------------------ > > Message: 3 > Date: Sun, 31 May 2020 12:12:52 -0700 > From: Eric Lennartson <[email protected]> > To: Alexandre Torres Porres <[email protected]>, pd-dev > <[email protected]> > Subject: Re: [PD-dev] inlets sending to wrong outlets > Message-ID: > < > cagkkne1x6rmtfc_gfagn5tkrustqah_xfp7q89wv1c+7i6z...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > I've been looking at the code for those, but I'm finding it a little hard > to parse. > Not sure how this is going to look on your end, but sorry for the text > wall. If there's a better way to share lmk. > > typedef struct _viotest > > { > > t_object x_obj; > > > > int n_outs, n_ins, n_iolets; > > t_sample **in_vec, **out_vec; // vector to hold all the inlets and > outlets > > } t_viotest_tilde; > > > static void viotest_tilde_input(t_viotest_tilde *x, t_floatarg f) > > { > > error("[viotest~]: no method for float."); > > } > > > static t_int *viotest_tilde_perform(t_int *w) > > { > > t_viotest_tilde *x = (t_viotest_tilde *)(w[1]); > > int nblock = (int)(w[2]); > > int n = nblock; > > > > t_sample **in_vec = x->in_vec; > > t_sample **out_vec = x->out_vec; > > > > int smaller = (x->n_ins < x-> n_outs) ? x->n_ins : x->n_outs; > > for(int channel = 0; channel < smaller; ++channel) > > { > > t_sample* in = in_vec[channel]; > > t_sample* out = out_vec[channel]; > > n = nblock; > > while(n--) > > { > > t_sample out_val = *in++; > > *out++ = out_val; > > } > > } > > > return (w + 3); > > } > > > static void viotest_tilde_dsp(t_viotest_tilde *x, t_signal **sp) > > { > > int i, nblock = sp[0]->s_n; > > > > t_sample **dummy = x->in_vec; > > > > for(i = 0; i < x->n_ins; ++i) > > { > > *dummy++ = sp[i]->s_vec; > > } > > > > for(; i < x->n_iolets; ++i) > > { > > *dummy++ = sp[i]->s_vec; > > } > > > > dsp_add(viotest_tilde_perform, 2, x, nblock); > > } > > On Sun, May 31, 2020 at 12:05 PM Alexandre Torres Porres <[email protected] > > > wrote: > > > I remember I went through similar stuff, see the code of else/mtx~ and > > cyclone/matrix~ > > > > and, share your code? > > > > cheers > > > > Em dom., 31 de mai. de 2020 às 16:00, Eric Lennartson < > > [email protected]> escreveu: > > > >> Hey all, > >> > >> I've been working with variable amounts of inlets and outlets and for > the > >> most part it's been working fine. If it's only variable inlets and the > >> outlets are fixed, or vice versa, it works fine. However when both are > >> variable I can't seem to get the inlets to go to the correct outlet. My > >> current code is cycling through the inlets and outlets in pairs, but for > >> some reason this isn't working. Any thoughts? > >> > >> Thanks > >> Eric > >> _______________________________________________ > >> Pd-dev mailing list > >> [email protected] > >> https://lists.puredata.info/listinfo/pd-dev > >> > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.puredata.info/pipermail/pd-dev/attachments/20200531/464e356e/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Pd-dev mailing list > [email protected] > https://lists.puredata.info/listinfo/pd-dev > > > ------------------------------ > > End of Pd-dev Digest, Vol 181, Issue 24 > *************************************** >
_______________________________________________ Pd-dev mailing list [email protected] https://lists.puredata.info/listinfo/pd-dev
