"currently selected filter" message in cascade?
I’m using filtergraph~ in cascade mode with 6 filters. Is there a message to filtergraph~ that will allow me to change which filter is selected without clicking on filtergraph~? This would correspond to the "currently selected filter" option in the filtergraph~ inspector.
I’m using Max 4.6.
I think that the "selectfilt" message is the one you’re looking for.
"selectfilt $1" moves crosshairs to the desired filter, but doesn’t highlight it in red. so when i adjust the cutoff, gain, etc., it’s not the desired filter that gets changed, it’s the originally highlighted one.
Try using the "params" message in conjunction with "mode" and "whichfilt" this should allow you to set the filter, mode, cutoff, gain and q factor.
It’s still the same problem with Max5…
"selectfilt" doesn’t replace mouse’s action to select the desired filter;
Is there any correction to come next? It could be good for midi control only.
does it work while the mouse is over the graph object?
yes, it works with the mouse over a filter and a click to select it,
and "selectfilt" doesn’t change is behaviour while the mouse is over the graph.
What I would like to find is a way to recall a numbered filter without mouse action. "selectfilt + [filter-index]" seems to be a simple and direct way to realize this, but it does the half work by not replace completely the presence of mouse over the graph.
Have I to find a solution as with Max 4.6… like Luke Hall suggested one year ago, or do I miss something new with Max 5?
it finally works, using the attributes "edit_filter [int]" and "edit_mode [int]".
BTW, there’s an error in the documentation. it says:
"Filters are numbered from 1." (for the edit_filter attribute).
The counting actually starts from 0.