[PD] expr from sssad/gui-objects

Frank Barknecht fbar at footils.org
Wed Aug 6 23:03:52 CEST 2008


Hallo,
Atte André Jensen hat gesagt: // Atte André Jensen wrote:

> I have three number-boxes connected to sssad objects. When they all have 
> their value restored I'd like to make an [expr $f1 - $f2 - $f3]. Since I 
> don't know which box will get restored first I have bangs from the the 
> second and third numbers to the hot inlet, which 1) is very ugly and 2) 
> will always give three outputs from expr, only the last being correct.
> 
> How can I make a calculation *only when all three values are available*?

The only way I can think of is to send a bang after restoring all
sssad-settings i.e. after the "set" message to SSSAD_ADMIN and use
this to bang a temporary storage float. Otherwise it's not know which
of the three numbers has to be considered the last one.

See attachement.

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: too-hot.pd
Type: application/puredata
Size: 1332 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080806/45e37386/attachment.bin>


More information about the Pd-list mailing list