summaryrefslogtreecommitdiff
path: root/dgedit/audioextractor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dgedit/audioextractor.cc')
-rw-r--r--dgedit/audioextractor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dgedit/audioextractor.cc b/dgedit/audioextractor.cc
index 015d323..3d11f84 100644
--- a/dgedit/audioextractor.cc
+++ b/dgedit/audioextractor.cc
@@ -190,9 +190,9 @@ void AudioExtractor::exportSelections(Selections selections,
Levels::iterator nxt = k;
nxt++;
- int next;
- if(nxt == levels.end()) next = 127;
- else next = nxt->velocity - 1;
+ float next;
+ if(nxt == levels.end()) next = 1.0;
+ else next = nxt->velocity;
QDomElement velocity = doc.createElement("velocity");