summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-10-02 16:24:57 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-10-02 16:24:57 +0200
commit0e3ed82bedabcfcd78dd8c16bbd59ada66bd2e56 (patch)
tree697fad8169f7b96e9039e9ebd5361578ee83f7dd /dgedit/samplesorter.h
parentf474c3c923fe5bb27c1ee11e2c6dd57e41889f27 (diff)
Convert velocity levels from 0-127 (midi) to 0.0-1.0 (more generic).
Diffstat (limited to 'dgedit/samplesorter.h')
-rw-r--r--dgedit/samplesorter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgedit/samplesorter.h b/dgedit/samplesorter.h
index ff45f3e..f277ff1 100644
--- a/dgedit/samplesorter.h
+++ b/dgedit/samplesorter.h
@@ -33,7 +33,7 @@
class Level {
public:
- int velocity;
+ float velocity;
QMap<float, Selection> selections;
};
@@ -74,7 +74,7 @@ private:
Selection sel;
- QVector<int> threshold;
+ QVector<double> threshold;
bool threshold_is_moving;
bool selection_is_moving_left;
bool selection_is_moving_right;