summaryrefslogtreecommitdiff
path: root/muse2/muse/functions.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-23 16:24:51 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-23 16:24:51 +0000
commit44a5f5d8805449c008924cca65c16837245825e0 (patch)
treeb4a11483f64971da66f510c3fc69b1221e4329b6 /muse2/muse/functions.h
parentcebe18a6c4211f23bc7cad82b4d9a9611a46234f (diff)
implemented legato function
added all the new functions to the score editor
Diffstat (limited to 'muse2/muse/functions.h')
-rw-r--r--muse2/muse/functions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/muse2/muse/functions.h b/muse2/muse/functions.h
index 18f6e3ec..40e5f0e0 100644
--- a/muse2/muse/functions.h
+++ b/muse2/muse/functions.h
@@ -17,6 +17,7 @@
#include "widgets/function_dialogs/setlen.h"
#include "widgets/function_dialogs/move.h"
#include "widgets/function_dialogs/deloverlaps.h"
+#include "widgets/function_dialogs/legato.h"
#include <set>
#include "part.h"
@@ -31,6 +32,7 @@ extern Setlen* set_notelen_dialog;
extern Move* move_notes_dialog;
extern Transpose* transpose_dialog;
extern Crescendo* crescendo_dialog;
+extern Legato* legato_dialog;
void init_function_dialogs(QWidget* parent);
@@ -49,6 +51,7 @@ void set_notelen(const std::set<Part*>& parts, int range, int len);
void move_notes(const std::set<Part*>& parts, int range, signed int ticks);
void transpose_notes(const std::set<Part*>& parts, int range, signed int halftonesteps);
void crescendo(const std::set<Part*>& parts, int range, int start_val, int end_val, bool absolute);
+void legato(const std::set<Part*>& parts, int range, int min_len=1, bool dont_shorten=false);
//the below functions automatically open the dialog
@@ -62,6 +65,7 @@ bool transpose_notes(const std::set<Part*>& parts);
bool crescendo(const std::set<Part*>& parts);
bool erase_notes(const std::set<Part*>& parts);
bool delete_overlaps(const std::set<Part*>& parts);
+bool legato(const std::set<Part*>& parts);