summaryrefslogtreecommitdiff
path: root/muse2/muse/midiedit/scoreedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/midiedit/scoreedit.h')
-rw-r--r--muse2/muse/midiedit/scoreedit.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/muse2/muse/midiedit/scoreedit.h b/muse2/muse/midiedit/scoreedit.h
index 84a74cb0..95dde6c2 100644
--- a/muse2/muse/midiedit/scoreedit.h
+++ b/muse2/muse/midiedit/scoreedit.h
@@ -65,6 +65,11 @@ class QScrollArea;
+
+
+
+
+
//---------------------------------------------------------
// ScoreEdit
//---------------------------------------------------------
@@ -147,6 +152,37 @@ struct note_pos_t
bool operator< (const note_pos_t& a, const note_pos_t& b);
+
+// FINDMICH put that keymap-stuff to its appropriate place
+struct KeyEvent
+{
+ tonart_t key;
+ unsigned tick;
+
+ KeyEvent(tonart_t k, unsigned t)
+ {
+ key=k;
+ tick=t;
+ }
+};
+
+typedef std::map<unsigned, KeyEvent, std::less<unsigned> > _KeyList;
+typedef _KeyList::iterator iKeyEvent;
+typedef _KeyList::const_iterator ciKeyEvent;
+typedef _KeyList::reverse_iterator riKeyEvent;
+typedef _KeyList::const_reverse_iterator criKeyEvent;
+
+class KeyList : public _KeyList
+{
+ public:
+ KeyList();
+ void clear();
+ tonart_t key_at_tick(unsigned tick);
+ //TODO FINDMICH: more functions, like add(), remove() have to be implemented
+};
+
+
+
class FloEvent
{
public:
@@ -467,7 +503,7 @@ class ScoreCanvas : public View
void draw_items(QPainter& p, int y, ScoreItemList& itemlist, int x1, int x2);
void draw_items(QPainter& p, int y, ScoreItemList& itemlist);
void calc_item_pos(ScoreItemList& itemlist);
-
+ void calc_pos_add_list();