Re: [PD] How can more than one input trigger an operation?

2014-09-17 Thread Py Fave
if you have a lot of buttons , make an abstraction with

inlet
[t b f
II
send ControlTouched
outlet



2014-09-17 7:19 GMT+02:00 Ingo i...@miamiwave.com:
 The first example is exactly how you should do it.
 The second example is missing the [t b f]. This way you cannot be sure that
 you are receiving the value first and then bang the left input or the other
 way around.
 This means both values und the right need their own [t b f].

 Ingo



 -Ursprüngliche Nachricht-
 Von: Pd-list [mailto:pd-list-boun...@lists.iem.at] Im Auftrag von JC
 Pedroza
 Gesendet: Mittwoch, 17. September 2014 02:12
 An: pd-list@lists.iem.at
 Betreff: [PD] How can more than one input trigger an operation?

 I need an operation to be performed whenever a change in a control is
 performed. Operations are only performed when the left input is changed or
 it receives a bang.

 Right now I'm achieving this by using a `[t b f]` object, like this:

 http://i.imgur.com/9S0LZun.png

 This works for two inputs (I still wonder if there is a different, better,
 less ugly approach though) but things get uglier and uglier as more inputs
 are needed.

 For three inputs, for example, I thought about something like this:

 http://i.imgur.com/7g5lrzH.png

 But I don't know, I feel that there must better alternatives (maybe
 there's a bug with this?)

 What is the common way to implement multiple controls triggering an
 operation? Which are my options here?




 ___
 Pd-list@lists.iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


 ___
 Pd-list@lists.iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How can more than one input trigger an operation?

2014-09-16 Thread Ingo
The first example is exactly how you should do it.
The second example is missing the [t b f]. This way you cannot be sure that
you are receiving the value first and then bang the left input or the other
way around.
This means both values und the right need their own [t b f].

Ingo



 -Ursprüngliche Nachricht-
 Von: Pd-list [mailto:pd-list-boun...@lists.iem.at] Im Auftrag von JC
 Pedroza
 Gesendet: Mittwoch, 17. September 2014 02:12
 An: pd-list@lists.iem.at
 Betreff: [PD] How can more than one input trigger an operation?
 
 I need an operation to be performed whenever a change in a control is
 performed. Operations are only performed when the left input is changed or
 it receives a bang.
 
 Right now I'm achieving this by using a `[t b f]` object, like this:
 
 http://i.imgur.com/9S0LZun.png
 
 This works for two inputs (I still wonder if there is a different, better,
 less ugly approach though) but things get uglier and uglier as more inputs
 are needed.
 
 For three inputs, for example, I thought about something like this:
 
 http://i.imgur.com/7g5lrzH.png
 
 But I don't know, I feel that there must better alternatives (maybe
 there's a bug with this?)
 
 What is the common way to implement multiple controls triggering an
 operation? Which are my options here?
 
 
 
 
 ___
 Pd-list@lists.iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list