summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-22 21:30:51 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-22 21:30:51 +0200
commit71e034f21c66eb921bd18779ccb7f183955896d3 (patch)
tree4d754985f9748de5ef6fdc169a16ebbbada8c721 /src
parent70646c5c54b7502e4ff53bfd98788ba0090dd1c4 (diff)
Fix sample adding with no velocity groups present in instrument file (new editor behaviour).
Diffstat (limited to 'src')
-rw-r--r--src/instrumentparser.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/instrumentparser.cc b/src/instrumentparser.cc
index c66608b..84cbe23 100644
--- a/src/instrumentparser.cc
+++ b/src/instrumentparser.cc
@@ -161,7 +161,10 @@ void InstrumentParser::startTag(std::string name,
return;
}
+#ifndef EXPERIMENTAL
+ // TODO: Old algorithm needs this here.
instrument.addSample(lower, upper, sample);
+#endif/*EXPERIMENTAL*/
}
}
@@ -174,7 +177,13 @@ void InstrumentParser::endTag(std::string name)
}
instrument.samplelist.push_back(s);
- s = NULL;
+
+#ifdef EXPERIMENTAL
+ // TODO: New algorithm needs this here. Thresholds are ignored, hence '0'
+ instrument.addSample(0, 0, s);
+#endif/*EXPERIMENTAL*/
+
+ s = NULL;
}
if(name == "instrument") {