function object help

R_Gol's icon

Max Patch
Copy patch and select New From Clipboard in Max.

I have the patch above that is making random curve envelopes with 10 different points. I wondering how can I have the same patch only that the first and last X point will have the Y value of 0. So if I will apply the function to act as an envelope the sound will start at 0 and will end at 0.

Thanks!

Source Audio's icon

Max Patch
Copy patch and select New From Clipboard in Max.

R_Gol's icon

So simple and good! thanks!

Edit: If I would like to transform this patch to mc with 4 channels so every bang I will have 4 difference random functions. Would it be possible ?
edit 2: this is what I manage to do:

Max Patch
Copy patch and select New From Clipboard in Max.


Seems to almost work. the curve is not applying to the mc function.

Source Audio's icon

why don't you just multiply it ?
or do you need different number of points ?
if not, use same uzi , multiply the rest as many times as needed.
if number of points need to be different, that can also have some random
values.
By the way is it wanted to have last x point end 10% before the function max domain
value ?
if not, use / 9. instead of / 10

R_Gol's icon

Hi,
I don't need different number of points.
When you said to multiple the rest as many time as needed, you mean to copy this algorithm 10 time ?I'm not sure I got it.

"By the way is it wanted to have last x point end 10% before the function max domain value ? if not, use / 9. instead of / 10" Thank for that!

Max Patch
Copy patch and select New From Clipboard in Max.

an option ?

Source Audio's icon

I understood that you want to generate 4 different functions.
I don't use mc , so can't properly help you with that.
Had a look at the mc.function help file = dumb, does not tell you the simplest thing - how to enter data for specified channel.
I tried a message target 1 xyz 0 1 10 and it worked.
So I guess you need to prepend target with a number before
you route output of random generated points to mc.function

Source Audio's icon

could not resist ...

Max Patch
Copy patch and select New From Clipboard in Max.

R_Gol's icon

Thanks looks good!Edit: Beautiful algorithm :))
I see that also here the curve (expo or log) is not working for some reason. but apart of that is wonderful!

Source Audio's icon

curve in function is set to point, not to whole function.

Max Patch
Copy patch and select New From Clipboard in Max.


could it be that you need to send float to all points in each instance ?

Source Audio's icon

you have to set mode 1.