[PD] "intercepting" editing messages?
Krzysztof Czaja
czaja at chopin.edu.pl
Sat Sep 28 14:56:18 CEST 2002
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
More information about the Pd-list
mailing list