filtergraph~ and pattr

    Mar 30 2011 | 1:22 am
    I want to use filtergraph~ settings with pattr but filter graph can't be used directly, so I have to use float boxes on the input parameter but if I use the mouse UI just the out put are set, so i mean I have to reroute correctly (no infinite messaging so I use set) the output to my box input.
    Do I am right ?
    Thanks Maa

    • Mar 30 2011 | 3:36 am
      yes, set $1 for each of the output boxes should work, these set the float boxes that [pattr] binds to. You can then hide the float boxes if all you want to use is the filtergraph~ part of the UI. If you have [line] ramps these can go into the float boxes too, etc. It's a case where you actually want to have an extra UI-type object, to give [pattr] a bridge to an object it doesn't directly support.
      Try using [mtr] with filtergraph~ too, that's an easy wiring-together. The [mtr] has its own stack-overflow protection built-in, so that incoming messages (when recording) don't get sent out, while when playing back, messages don't get accepted in.
    • Mar 30 2011 | 3:51 am
      thanks for the very good advices ( [mtr] is too new to me ) would you be kind enough to provide a quick example on 1 in/out of filtergraph~ for the [line] and the [mtr]
      I am pretty new to max and it will avoid me a long tester on [mtr] the pattr stuff is ok don't worry
    • Mar 30 2011 | 5:22 am
      just follow the [mtr] help file, the inlets and outlets correspond to playback of a number of "tracks". all you have to do is wire the same [filtergraph~] values like frequency through the [mtr] and then back into the [filtergraph~]. Or you can get fancier and have floats before and after, which is where [pattr] comes in.
      muting individual tracks is easy, so you can block playback of whichever parameters you want and get UI control back for that element: playback the Q and the gain but manually move the frequency, or whatever combination during playback.
    • Mar 30 2011 | 5:41 am
      Hello Maa,
      I don't see how [mtr] will solve your pattr problem but anyway.
      Here's the way to go to store filtergraph~s freq/gain/q values :
    • Mar 30 2011 | 7:30 am
      mtr is not related, but I learned a new object
      I took the best of both examples, and extend
      somebody complete to avoid clicks (smooth the change) ?
    • Mar 30 2011 | 7:44 am
      > I want to use filtergraph~ settings with pattr but filter graph can't be used directly
      Unless I completely misunderstand, this appears not to be true.
    • Mar 30 2011 | 8:26 am
      even better work with autpopattr too how ro know if an object is compatible with pattr or not ?
    • Mar 30 2011 | 8:58 am
      > how ro know if an object is compatible with pattr or not ?
      Don't know if there's a complete list, but easiest is just to try. All ui objects are candidates.
    • Mar 30 2011 | 9:05 am
      two more thing for the v6 wish list a field in the documentation obj parameter which expose in the inspector some properties like this one
    • Mar 30 2011 | 9:35 am
      Yes, that the easiest solution. The only problem I see, is that you cannot read freq/gain/q values in the filter coeff list. Sometimes it's of some use to have a look at the preset files or the pattrstorage client/storage window.
      Concerning avoiding clicks, you can use pattrstorage internal interpolation (just connect a float to pattrstorage). biquad~ should not produce any clicks. Of course you can not interpolate between different filter types (unless you have 2 filtergraph~ & 2 biquad~).
    • Mar 30 2011 | 10:06 am
      very good point about the readability of the storage data infact all this object should be like a subpatch and declare several pattr with names and not a list, this way they could be select/deselected from the preset, pattrstorage client/storage window. but this not the first flaw in the symetry of the design... even the pattr name is bad (param would be better).
      avoiding clicks: are you sure biquad~ don't produce clicks.
      no one on the line stuff (i am controling individual param (goingthru pattr interpolation is too complex for simple fx
    • Mar 30 2011 | 12:28 pm
      For interpolation, I would opt for this solution.
    • Mar 30 2011 | 2:39 pm
      Really nice one, interpolation between filter types is then also possible.
    • Mar 30 2011 | 3:47 pm
      yep but everytime you recall something you UI is lost on the filtergrapgh have to pick a filter type to reactivate
    • Mar 30 2011 | 4:42 pm
      An easy solution :
    • Mar 30 2011 | 10:20 pm
      filtergraph still can't be change with the mouse after a store I am going for the solution with float box ( pattr name / direct control)
    • Apr 01 2011 | 8:16 am
      Just include the mode menu into the pattrstorage: