[PD-dev] using ugen_getsortno() in an external

zmoelnig at iem.at zmoelnig at iem.at
Fri Jun 23 14:59:11 CEST 2006


Zitat von Hans-Christoph Steiner <hans at eds.org>:

>>
>> I haven't looked at the code, but from the name it seems that
>> ugen_getsortno() only applies to the dsp graph, not to general
>> message objects.
>>
>> You could implement your idea by having a global flag that shows
>> you which instance has been executed first
>
> How would that flag get reset with each DSP cycle?

by setting it to zero in the perform routine :-)

honestly, as günther suggest, i don't see any reason to connect [hid] 
with the dsp graph.
this object is a message object (unless i missed [hid~]), and should 
stay away from signal data as far as it can.

i thought i suggested that once when you first asked for that: why 
don't you just get the logical time with Pd's API and compare that to 
the time when one of these objects was last executed?
static variables within the function might be the clue...


mfg.asdr.
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1718 bytes
Desc: ?ffentlicher PGP-Schl?ssel
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20060623/b8189043/attachment.key>


More information about the Pd-dev mailing list