Hi
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*?
Sorry if the answer (again) is obvious...
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.
Frank Barknecht _ ______footils.org__
nice examples Frank!
Frank Barknecht wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
The only way I can think of ...
Here's another thing I could think of: store the three numbers in a single list. See att. again.
Ciao
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi if you have three number-boxes connected to [expr $f1 - $f2 - $f3], don't you have a trigger problem anyway?
Atte André Jensen wrote:
Hi
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*?
Sorry if the answer (again) is obvious...