Controlling function with pattr


    Mar 30 2006 | 3:18 pm
    Hi there,
    I am building a synth which has a number of identical modules, the variables in which need to be independently varied. One of these variables is the volume envelope, which i am controlling using a "function" object.
    I am trying to control all the values for these modules from one simple gui, and have managed to sort out all the others (all of which are single values so relatively easy) using pattr's, but am having trouble controlling the function. The way i would like to do this is to have a function object in the gui, and to link this to the function object in the subpatches, so pattr would be the obvious choice, but i can't seem to get it to send data in a sensible way.
    I have managed to link two functions together with patch cords so that one controls the other, it just seems to stop working when using a pattr.
    Does anyone have any suggestions as to how i might go about doing this with pattrs, or is there another way which might work?
    Thanks, Gethin

    • Mar 30 2006 | 3:23 pm
      Please send a simple patch illustrating the problem. Otherwise, there's no way to know what you've done, and no way to sensibly help.
      Thanks - jb
    • Mar 30 2006 | 3:31 pm
      Hi, thanks for your reply.
      Basically, this patch does what i want it to do:
      Whereas trying to do it this way doesnt:
    • Mar 30 2006 | 3:42 pm
      This is what you want, I think. If you need to keep track of the values, add pattr back to the patch, but the "dump" format of function and the pattr-value are different, which is why your thing's not working. Since you also want to send a "clear" message, you need a message-passing object, not a value-managing object.
      In this case, the mighty pattrforward object is what you need.
    • Mar 30 2006 | 3:54 pm
      Thats brilliant, just what I was looking for, thank you very much!