summaryrefslogtreecommitdiff
path: root/muse2/muse/functions.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-06-27 18:23:39 +0000
committerFlorian Jung <flo@windfisch.org>2011-06-27 18:23:39 +0000
commit933aeb536f3d90eb38bc96308de628eeedd81755 (patch)
tree471aba95c16c939c696a4301ce2be45a7e583789 /muse2/muse/functions.h
parentd1b2d6ec4fe4206182e0cead1e734adfc3ae6df6 (diff)
parent637498c87bf1ac780d8527d0596936fcdd2c6dfc (diff)
merged stuff from experimental back to trunk:
- massively speeded up muse by using operation groups - changed behaviour of mid-click to "delete" in all canvases
Diffstat (limited to 'muse2/muse/functions.h')
-rw-r--r--muse2/muse/functions.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/muse2/muse/functions.h b/muse2/muse/functions.h
index 226c43f7..633457a9 100644
--- a/muse2/muse/functions.h
+++ b/muse2/muse/functions.h
@@ -51,8 +51,8 @@ bool quantize_notes(const std::set<Part*>& parts, int range, int raster, bool le
bool erase_notes(const std::set<Part*>& parts, int range, int velo_threshold=0, bool velo_thres_used=false, int len_threshold=0, bool len_thres_used=false);
bool delete_overlaps(const std::set<Part*>& parts, int range);
bool set_notelen(const std::set<Part*>& parts, int range, int len);
-bool move_notes(const std::set<Part*>& parts, int range, signed int ticks, bool do_undo=true);
-bool transpose_notes(const std::set<Part*>& parts, int range, signed int halftonesteps, bool do_undo=true);
+bool move_notes(const std::set<Part*>& parts, int range, signed int ticks);
+bool transpose_notes(const std::set<Part*>& parts, int range, signed int halftonesteps);
bool crescendo(const std::set<Part*>& parts, int range, int start_val, int end_val, bool absolute);
bool legato(const std::set<Part*>& parts, int range, int min_len=1, bool dont_shorten=false);
@@ -84,6 +84,11 @@ void select_invert(const std::set<Part*>& parts);
void select_in_loop(const std::set<Part*>& parts);
void select_not_in_loop(const std::set<Part*>& parts);
+//functions for parts
+void shrink_parts(int raster=-1); //negative values mean "config.division"
+void expand_parts(int raster=-1);
+void clean_parts();
+
//functions for reading and writing default values
class Xml;
void read_function_dialog_config(Xml& xml);