Forums > MaxMSP

set minimum domain value in function object?

July 4, 2014 | 6:28 am

Is it somehow possible to set the a value of domain in the function object? I know it i possible with ej.function but I would like to limit the use of externals

– Pasted Max Patch, click to expand. –

July 4, 2014 | 8:07 am

Try looking up ‘domain’ and ‘setdomain’ messages in the function object’s Help and Reference files (and in MSP Tutorial 7).


July 4, 2014 | 8:38 am

Sorry, my question was not clear: I meant a minimum value. With the function object and the domain message you can only set a maximum, the minimum is always zero.


July 4, 2014 | 9:37 am

Ah. Got it. (I saw the word minimum in the title, but not in the message.)

I think it’s pretty much as simple as just subtracting the desired minimum from the input. If, in doing so, you want to keep the domain maximum the same (rather than just offsetting the whole domain by a certain amount) then you’ll also have to resize the domain to be (maximum-minimum). Here’s an example.

– Pasted Max Patch, click to expand. –

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