Parametric EQ - Limit the amount of nodes?
-
Can we limit the number of bands the user can implement in the Parametric EQ?
Or maybe prevent the user from being able to add any nodes in the EQ floating window, but be able to control existing nodes with the usual mouse functions...
-
@DanH EQComponent.cpp
comment out lines 630-636 to prevent adding new nodes
Potentially useful if you wish to create a (for example) 5 band EQ that has all the functionality of the Parametric EQ but removes the possibility of the user adding more nodes and therefore creating scripting issues if you wish to script controls for the 5 bands etc.
You also need to remove the right-click menu (or item within) to disable 'Delete All Bands' as well as 'Delete Band'. To do this I've commented out lines:
- 531
- 553 - 558
- 608 - 615
-
@DanH or add a property to the Parametric EQ
.set("numNodes", 5);
-
@ulrik I tried
ParametricEQ1.set("numNodes", 5);
but get the error 'function not found'...
EDIT: oh wait do you mean add this into the source code?
-
@DanH I mean that Christopher could add a property to the EQ
-
@ulrik That would be nice @Christoph-Hart :)
-
It might not be that hard to add that property yourself if you want to explore C++.
-
@d-healey I just bought a c++ course on Udemy, it will be my summer reading :)
-
Is This Available Now?
-
Which bit?
-
@DanH Latest Develop
-
@Natan you mean a function to limit the amount of nodes? I don't think so
-
@DanH Is this by any chance possible now ?
-
@lalalandsynth I don’t think so. I reckon there must be a way to edit the mouse callback for adding nodes in the source code. My initial idea was to create the nodes you require and then edit the source to prevent users adding their own.
Failing that what you want to do might be possible using multiple EQ filters in scriptnode