can someone tell me a elegant way to summate 6 different numbers?
if i use the + i get a suitable result with 2 numbers, using trigger. But how does it work with more than two numbers?
Best, Christopher (still newbie, well maybe forever...)
Adding numbers (more than two)
You can either chain together several addition objects like this:
or you can use the expr object:
Using expr looks neater, but it actually uses more CPU, so you might want to stick to the first method in this case.
In both of these, only the left inlet is "hot", meaning that you need to send a message to the left inlet before it will output anything. If you want all inlets to be hot, you can either use a trigger like this:
or use the [bondo] object if you are using PD Extended:
@elvum It depends also whether your numbers are in a list, or you are entering them one at a time.........etc.
Here you can just type numbers into the top box and press enter to add them to the sum. The [+] object receives the last total on its right input, and then adds that to what it receives on its left input...... and again... and again.... it's very simple.......adding.pd