[PD] where to find $ args

Mathieu Bouchard matju at artengine.ca
Sat Feb 5 05:44:51 CET 2011


On Tue, 25 Jan 2011, Rich E wrote:

> Ah, understood.  Thanks for the nice code explanation and references... they both really help.  
> I noticed that t_canvasenvironment remains privately defined, so it's difficult to use this struct.  To get the dollarzero, I saw this works:
> 
> canvas_setcurrent(x_canvas);
> int dzero = canvas_getdollarzero();

That's an alias of pd_pushsym.
You are supposed to use it with canvas_unsetcurrent (alias of pd_popsym), 
though I don't remember what can really go wrong if you don't unset/pop.

  _______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC


More information about the Pd-list mailing list