[PD] question about convolution

J. Scott Hildebrand jshildebrand at ucdavis.edu
Sat Oct 26 02:43:56 CEST 2002


      right now everything is working as it should, except for some
unwelcome "clicks" when changing the location of the sound (changing the
HRTFs). i tried writing a linear interpolation algorithm but that didn't
fix the problem.

      the location of the sound is specified by integers that are the 3rd
and 4th inlets into the external. i'm wondering if the problem is that
everytime i switch the HRTFs, then the whole code starts over and the
previous block of samples is cut short; this would explain a click only
when the filters are changed. at the end of this email is my code for the
inlet/outlet declaration. are these inlets all active? and would making
them inactive possibly fix the problem?

      i'm really stuck so if anybody can help out i'd really appreciate
it!

                    scott


static void *convaudio2_tilde_new(t_floatarg f)
{
  t_convaudio2_tilde *x = (t_convaudio2_tilde
*)pd_new(convaudio2_tilde_class);

  x->f_convaudio2 = f;

  inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal, &s_signal);
  inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("first"));
  inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("bound"));


  outlet_new(&x->x_obj, &s_signal);

  outlet_new(&x->x_obj, &s_signal);	/* second outlet for stereo */


  return (void *)x;
}





--------------------------------------------------------------------

	"640K ought to be enough for anybody." -- Bill Gates, 1981

--------------------------------------------------------------------





More information about the Pd-list mailing list