diff options
author | Florian Jung <flo@windfisch.org> | 2011-09-13 16:35:38 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-09-13 16:35:38 +0000 |
commit | 56d4a94c40bbcae6a2862fba3e2923542511779f (patch) | |
tree | 9b7cf6297cd3c66e8c077a2cc0b3b3f947cc5877 /muse2/muse/helper.cpp | |
parent | ebf207e2c5e457e9a6fa93dfdd31b96ea379de9a (diff) |
added copy-in-range support for midi editors
Diffstat (limited to 'muse2/muse/helper.cpp')
-rw-r--r-- | muse2/muse/helper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/muse2/muse/helper.cpp b/muse2/muse/helper.cpp index 6aaacdb5..82c22c64 100644 --- a/muse2/muse/helper.cpp +++ b/muse2/muse/helper.cpp @@ -27,6 +27,7 @@ #include "app.h" #include "icons.h" #include "synth.h" +#include "functions.h" #ifdef DSSI_SUPPORT #include "dssihost.h" @@ -36,6 +37,7 @@ #include "vst.h" #endif +using std::set; namespace MusEGlobal { extern bool hIsB; @@ -321,4 +323,9 @@ QActionGroup* populateAddTrack(QMenu* addTrack) return grp; } +bool any_event_selected(const set<Part*>& parts, bool in_range) +{ + return !get_events(parts, in_range ? 3 : 1).empty(); +} + } // namespace MusEUtil |