set minimum domain value in function object?


    Jul 04 2014 | 1:28 pm
    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

    • Jul 04 2014 | 3:07 pm
      Try looking up 'domain' and 'setdomain' messages in the function object's Help and Reference files (and in MSP Tutorial 7).
    • Jul 04 2014 | 3:38 pm
      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.
    • Jul 04 2014 | 4:37 pm
      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.
    • Apr 10 2017 | 9:44 pm
      Hey, sorry to resurrect, but I have the same question, almost. The fix mentioned by Christopher Dobrian will not solve the issue when you want to use [function] in a bang-able manner, i.e., when you want to send a message output to a [line~] or [curve~].
      Is there any way to affect [function] so it sends out a list with a non-zero x minimum?