Replies: 3 comments
-
That sounds like a great improvement :) Otherwise when I do the next round of updates I'll look through and update these |
Beta Was this translation helpful? Give feedback.
-
Well, it's too big a job for me - I'm not a fan of structs with default public fields that can then be modified by anybody since they're defined in a header file so I'd be changing them to classes, making the fields private, and using getterz/setters, otherwise finding problems due to somebody changing a field directly exacerbates the maintenance problem. I was just pointing out my concerns, many may not care. |
Beta Was this translation helpful? Give feedback.
-
FTR, I added PR #11 to implement this change. |
Beta Was this translation helpful? Give feedback.
-
I just started looking for a C++ class library for MIDI 2.0 frankly just to save myself some time (i.e, use it before I have a deep understand of MIDI 2).
A significant factor for me is maintenance. I started to look at the umpProcessor.h code and noticed immediately that all three structs at the beginning share the following fields:
so I'm left wondering why those fields are not in a "parent" struct, if you will, with the other structs inheriting from them, for example
Alternatively, don't inherit and just have an instance the common struct in all of the other ones rather than having duplicated fields.
Beta Was this translation helpful? Give feedback.
All reactions