Forums > MaxMSP

function inconsistencies ?

June 4, 2012 | 10:48 am

Working with the book by Giri and Cipriani, I was experimenting with beats between sine waves (activity p. 251 for those who have it) and came up with this. First, they suggest to use [line~] and [function] to generate the glissandi but it seems to me that should be [line] instead of [line~]. Am I right ?
Then I get inconsistencies with the [function] object. It seems it doesn’t respond properly to the ‘setdomain’ message and the generated pitch envelopes don’t seem to reach their final value at the same time. This happens with max 6.05

– Pasted Max Patch, click to expand. –


ak
June 4, 2012 | 7:04 pm

Hello, I don’t have this book, but I’m sure the autors are right. [function] works well only with [line~], not [line]. These two objects understand a list message differently.

– Pasted Max Patch, click to expand. –

HTH


June 4, 2012 | 11:29 pm

Although it is possible to use [line], you usually would want to use [line~] because you’ll get a much smoother ramp since it’s signal based. Another benefit: when you scale the output using [*~] you don’t need to bang the output after setting the right operand (as demonstrated in Andrzej’s version of your patch). When you’re doing MSP stuff, just use [line~], you’ll be in a happier place :)

Regarding the timing issue:
Your functions’ points were just shy of the max end of the domain, which is why they weren’t quite reaching the end of the domain range.
I modded the patch so you can see the timing of the functions. The functions DO all take the same amount of time (when the first and last points are at the same values in the domain for each function) BUT, as I’ve just discovered, that time IS inconsistent! I would love if someone would shed some light on this!

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)