[PD] Help with writing externals

Yves Degoyon ydegoyon at free.fr
Sat Apr 3 19:52:55 CEST 2004


thewade wrote:

>Thanks Mathieu!
>
>I ran pd inside of gdb and figured out that my problem is in my dsp function, which only calls the dsp_add function.
>
>Program received signal SIGSEGV, Segmentation fault.
>[Switching to Thread 1073855264 (LWP 1420)]
>0x414b197b in fftbin_tilde_dsp () from /home/wade/pd/general/fftbin~.pd_linux
>
>So that just leaves me with the problem of figuring out the syntax of dsp_add.
>
>Heres how I thought it worked.
>
>This call...
>void fftbin_tilde_dsp(t_fftbin *ref, t_signal **sp)
>{
>  dsp_add(fftbin_tilde_perform, 3, ref,
>          sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);
>}
>  
>
it should be :

dsp_add(fftbin_tilde_perform, 5, ref,
          sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);


as you have 5 parameters...

cheers,
sevy





More information about the Pd-list mailing list