[PD] oh yeah

Yves Degoyon ydegoyon at free.fr
Sat Aug 24 16:09:36 CEST 2002


hi,

just to make things clearer :

storing the audio blocks in the 256 array :

>
> {
> t_int counter;
> }
>
> ..._perform( ...... )
> {
>
> for(i=0; i<n; i++)
> {
> aleftout[counter] = *(in1++);
> arightout[counter] = *(in2++);
> counter=(counter+1)%256;
> }
>
> } 


restoring the 256 array towards the output :

>
> {
> t_int readpos;
> }
>
> ..._perform( ...... )
> {
>
> for(i=0; i<n; i++)
> {
> *(out2++) = aleftout[readpos];
> *(out1++) = arightout[readpos];
> readpos=(readpos+1)%256;
> }
>
> } 

watchout, if you have a stereo dsp object,
the audio inlets/outlets will be passed to the perform
routine in the following order :

left-in, right-in, right-out, left-out

that's the clockwise order starting from upper-left corner.

bye,

sevy/yves







More information about the Pd-list mailing list