[PD] Multiplying 2 variables

michael noble looplog at gmail.com
Thu Nov 28 11:30:31 CET 2013

Oops, I think there is a mistake in the order of execution of the right
trigger object in my example. It will give correct results when using the
gui to change the number values, but I can see conditions where such an
approach will lead to unexpected values. I think it can be fixed simply by
swapping the leads of the right trigger object.

On Thu, Nov 28, 2013 at 6:20 PM, michael noble <looplog at gmail.com> wrote:

> On Thu, Nov 28, 2013 at 5:21 PM, sebarocker at gmail.com <
> sebarocker at gmail.com> wrote:
>> I know that the multiplying object stores two values (left inlet and
>> right inlet)  and performs the operation when both are stored or when a
>> bang is sent to the left inlet.
> Not really. As lorenzo said, PD has strict rules regarding inlets and
> order or execution. The [* ] only stores the value of the right inlet. Any
> value sent to the left inlet will not be stored, it will simply be
> multiplied by the stored value. So when you change the DeTuner value, it
> will simply be multiplied by itself. There are other ways to accomplish
> what you want, but I think the simplest is probably to use two [* ]
> objects. See attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20131128/097ad910/attachment-0001.htm>

More information about the Pd-list mailing list