[PD] "intercepting" editing messages?
Josh Steiner
joschi at eds.org
Mon Sep 30 17:23:15 CEST 2002
thanks to the man with the rockin name, this looks like just what i was
thinking of :) i've forwarded it on to my brother and i'll report back
here on my success once i have a chance to muck about with this.
-Josh
Krzysztof Czaja wrote:
> hi,
>
> with this little patch:
>
> --- s_inter.c~ Sat Jul 20 23:21:56 2002
> +++ s_inter.c Sat Sep 28 14:54:00 2002
> @@ -308,7 +308,15 @@
> outlet_setstacklim();
> if (x->sr_socketreceivefn)
> (*x->sr_socketreceivefn)(x->sr_owner, inbinbuf);
> - else binbuf_eval(inbinbuf, 0, 0, 0);
> + else
> + {
> + t_symbol *sniffsym = gensym("#spy");
> + if (sniffsym->s_thing)
> + pd_forwardmess(sniffsym->s_thing,
> + binbuf_getnatom(inbinbuf),
> + binbuf_getvec(inbinbuf));
> + binbuf_eval(inbinbuf, 0, 0, 0);
> + }
>
> everything sent from the gui will get monitored in the [r #spy]
> object (you may [route pd] then, if you wish).
>
> Krzysztof
>
> Josh Steiner wrote:
> ...
> > correctly, it only documents messages that you can send to the pd
> object
> > to script patch editing/creation and such, now how you can intercept
> > what messages the pd object gets from the TCL gui... while exceedingly
>
>
> _______________________________________________
> PD-list mailing list
> PD-list at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
More information about the Pd-list
mailing list