Hi,
I am playing around with examples of the FLOSS manual.
Currently I am sending messages like
<name of array> sinesum <parameterlist>
to an array, which then is read by tabread4~ and send to an dac~.
To make this setup a little more convenient I am looking for some simplifications:
1: Currently I have to enter edit mode to change the parameter list after "sinesum". Is it possible to do this in non-edit mode somehow?
2: Each time I edit the parameterlist and set the array afterwards, I have to send an "normalize 1"-message to normalize the amplitude to "1" max. Is it possible to automate this?
Thank you very much in advance for any help! Best regards, mcc
Hi Meino,
the answer to both your questions is simple Pd dataflow stuff...
On 3/1/10 8:00 PM, meino.cramer@gmx.de wrote:
1: Currently I have to enter edit mode to change the parameter list after "sinesum". Is it possible to do this in non-edit mode somehow?
You could use number boxes, a [pack] object and dollar sign variables in the "sinesum" message. Keep in mind the numbers won't be passed to the "sinesum" message until the "hot" inlet of [pack] is triggered.
2: Each time I edit the parameterlist and set the array afterwards, I have to send an "normalize 1"-message to normalize the amplitude to "1" max. Is it possible to automate this?
[trigger bang float] is your friend here. Or [t b f f f f f ] for as many parameters as you are entering in the situation above. Save the last "bang" for the "normalize 1" message.
This is covered briefly in the FLOSS Manual here:
http://en.flossmanuals.net/PureData/OrderOfOperations
(Although I would be very happy to see some better examples there, espc those using [trigger]!!!)
D.
Hi,
I am playing around with examples of the FLOSS manual.
Currently I am sending messages like
<name of array> sinesum <parameterlist>
to an array, which then is read by tabread4~ and send to an dac~.
To make this setup a little more convenient I am looking for some simplifications:
1: Currently I have to enter edit mode to change the parameter list after "sinesum". Is it possible to do this in non-edit mode somehow?
2: Each time I edit the parameterlist and set the array afterwards, I have to send an "normalize 1"-message to normalize the amplitude to "1" max. Is it possible to automate this?
hello Meino, slighty different approach: keep the sum of your partial weights to always be 1 (except for when they are all 0). see attached example. Then "normalize 1" message is not needed because the list of partial weights is normalized before sending it. Not sure if it matters, but this seems a bit more efficient to me, because you rewrite the table only once each time. gr, Tim
Thank you very much in advance for any help! Best regards, mcc