diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-15 10:14:51 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-15 10:14:51 +0000 |
commit | a79460c36201572c453974a93e62903fe77fd824 (patch) | |
tree | 4add099dad68cb3a1a9a88ba196dbbdecb093f31 /muse2/muse/functions.h | |
parent | 0ec79fb4c59be4adb77d3dcbc068dee7107ed381 (diff) |
- changed lots of functions and moved them into functions.cpp
- delete overlaps may work differently, i haven't understood it fully
- added lots of dialogs for these functions
Diffstat (limited to 'muse2/muse/functions.h')
-rw-r--r-- | muse2/muse/functions.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/muse2/muse/functions.h b/muse2/muse/functions.h index 03d0ba88..afd5b559 100644 --- a/muse2/muse/functions.h +++ b/muse2/muse/functions.h @@ -11,6 +11,11 @@ #include "velocity.h" #include "quantize.h" #include "gatetime.h" +#include "remove.h" +#include "transpose.h" +#include "setlen.h" +#include "move.h" +#include "deloverlaps.h" #include <set> #include "part.h" @@ -19,6 +24,11 @@ extern GateTime* gatetime_dialog; extern Velocity* velocity_dialog; extern Quantize* quantize_dialog; +extern Remove* erase_dialog; +extern DelOverlaps* del_overlaps_dialog; +extern Setlen* set_notelen_dialog; +extern Move* move_notes_dialog; +extern Transpose* transpose_dialog; void init_function_dialogs(QWidget* parent); @@ -30,12 +40,21 @@ void modify_velocity(const std::set<Part*>& parts, int range, int rate, int offs void modify_notelen(const std::set<Part*>& parts, int range, int rate, int offset=0); void quantize_notes(const std::set<Part*>& parts, int range, int raster, int strength=100, int swing=0, int threshold=0); void erase_notes(const std::set<Part*>& parts, int range); +void delete_overlaps(const std::set<Part*>& parts, int range); +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); + //the below functions automatically open the dialog //they return true if you click "ok" and false if "abort" bool modify_velocity(const std::set<Part*>& parts); bool modify_notelen(const std::set<Part*>& parts); bool quantize_notes(const std::set<Part*>& parts); - +bool set_notelen(const std::set<Part*>& parts); +bool move_notes(const std::set<Part*>& parts); +bool transpose_notes(const std::set<Part*>& parts); +bool erase_notes(const std::set<Part*>& parts); +bool delete_overlaps(const std::set<Part*>& parts); #endif |