Code: Select all
* Metronome super-makeover * New metronome accents editor with factory and user presets: - Choice of global vs. song metronome settings. - Re-design metronome dialog, separating into tabs. - NOTE: Qt signal/slots macros are OBSOLETE! Implemented first usage of Qt 'connect' functors and C++11 lambdas, in metronome dialog. Strange, some Qt classes don't seem to have functors? (QCheckBox, QComboBox.)
Robert began this by adding accents some time ago. But it only worked for 4/* time signatures and only on the up-beats.
But it is virtually impossible for the accents to be 'automatically' placed. Some user intervention was required here.
For example who's to say where the accents should be in a 5/4 signature? Or 7/4?
So after an issue was reported, I fixed 'er up. You can choose the accent sequences, make your own etc.
You can use global metronome settings (that's all of 'em including accents) or choose to make them song-specific
without touching the global settings.
This was an opportunity to try and make MusE's 'global vs. song' settings work correctly.
Sometimes things don't, and global settings are left in a state of the last song, like the mixers for example.
I think (I hope) it works well here with the metronome.
Here are some pics to motivate y'all to get the git: