Problems with the States module
I just finished working on my first MNodes project.
This is the additive drone generator DroneZone, which I uploaded to the hub in version 0.9 beta for anyone who is interested in such an instrument.
This project is quite large and complex and I learned a lot working with MNodes and really appreciated it as a powerful development platform.
Of all the things that I have noticed as hindrances when working with MNodes, I would like to briefly describe a few here; maybe someone has a solution.
If I had one wish for developer Mario Nieto, it would be a states module that only stores the value properties of controls and nothing else!
- In this way, at least rudimentary patch management could be implemented in an MNodes project.
- The current patch management in DroneZone is based on the States module and I have to say that this was by far the biggest difficulty for me in the entire (not exactly small) project.
- Because States saves (almost) all properties, I always have problems after adding or changing elements. As soon as a different snapshot is selected via States, this often leads to changes in properties in these elements.
- Of course, I realize that the original idea behind this module was precisely to be able to switch between two states of the application, including the layout elements.
- But in my experience so far, this becomes a serious problem as a project evolves as soon as controls are added or changed while snapshots have already been taken. When switching an existing snapshot, properties are often changed back again. Very problematic.
- For example, B. Texts in text widgets changed, which fortunately is usually immediately noticeable. But I find it very problematic, for example: B. that the property property in the appearance changer is also changed by states. This often leads to problems that are not easily recognized.
- I also find it strange that the selected index is not saved in combo boxes. Therefore, I had to remove all combo boxes from the GUI and replace them with other controls, which sometimes leads to unnecessarily complicated operation (e.g. selecting LFO shapes or filter types).
- The problem I have with the Line Shape module is that the Reduce property is often increased to 15 when retrieving a snapshot (whether locked or not), which results in the line being shortened in the GUI. I observed this particularly frequently in the panes of modules; It seems to work better in the front panel. Therefore, DroneZone does not contain a single line; it’s all just rectangles because it works with them

- I once observed that a patch cable connection disappeared after loading a snapshot via States!!! However, I cannot reliably understand this at the moment.
- As a “safe” workaround, I have resorted to calling up all previous snapshots with each corresponding change to check their effects, or deleting them all and re-entering them. Both are very complicated and actually not practical.
Off-topic, but still noticeable:
- Tooltips for GUI elements in a module’s panel (not the front panel) appear outside the boundaries of the control itself; they effectively follow the mouse cursor. Consequently, I am currently not using tooltips (unfortunately).
My point:
I consider it essential for a user of an instrument or effect to be able to save control settings as a patch.
Based on my comments above, I believe the “States” module is only partially suitable for this purpose. However, to the best of my knowledge, there is currently no other way to save patches in an MNodes project.
In my opinion, all the patch management issues I described could be resolved by a modified “States” module—specifically one that saves only those control values that change when the control is operated (usually the “Value” property).
- It would also be important to ensure that the indices of combo boxes and toggle buttons are saved.
- A property’s “lock” function should reliably exclude the corresponding control from such saving operations.
- I also consider it particularly important that saved user patches remain intact after an update. Currently, they are lost during updates, which users certainly won’t appreciate.
- Advanced patch management features would be a great addition. At the moment, there is only the list provided by the “States” module, which cannot even be sorted (though that is a topic for further discussion).
Despite all this criticism, I would like to express my deep respect for Mario Nieto’s work.
I am quite familiar with several systems that take a similar approach, so I can say from experience that—despite the difficulties I’ve mentioned—MNodes has the potential to become a serious development platform for audio tools. I already thought his other plugins were excellent, but MNodes could well cause some concern for companies like Native Instruments or UVI ![]()
What do you all think?
Is anyone familiar with similar issues, or perhaps have a solution?
Best regards, dr.rom