[synthclone] push by surfacep...@gmail.com - Fix note overlap bug in Renoise plugin. on 2012-12-21 05:10 GMT

0 views
Skip to first unread message

synth...@googlecode.com

unread,
Dec 21, 2012, 12:10:42 AM12/21/12
to synthclone-...@googlegroups.com
Revision: d6c916efc72a
Author: Devin Anderson <surface...@gmail.com>
Date: Thu Dec 20 21:10:21 2012
Log: Fix note overlap bug in Renoise plugin.

http://code.google.com/p/synthclone/source/detail?r=d6c916efc72a

Modified:
/src/plugins/renoise/target.cpp

=======================================
--- /src/plugins/renoise/target.cpp Sat Nov 10 03:24:03 2012
+++ /src/plugins/renoise/target.cpp Thu Dec 20 21:10:21 2012
@@ -199,7 +199,7 @@
if (drumKit) {
highNote = lowNote;
} else if (i != (keyCount - 1)) {
- highNote = (keys[i + 1].getNote() - zoneKey.getNote()) / 2;
+ highNote = (keys[i + 1].getNote() + zoneKey.getNote()) / 2;
} else {
highNote = 127;
}
@@ -262,7 +262,7 @@
if (drumKit) {
lowNote++;
} else {
- lowNote = highNote;
+ lowNote = highNote + 1;
}
}
confWriter.writeEndElement();
@@ -271,9 +271,10 @@
// Write sample envelopes
confWriter.writeStartElement("SampleEnvelopes");
confWriter.writeStartElement("Volume");
+ writeElement(confWriter, "Decay", "0");
writeElement(confWriter, "IsActive", "true");
writeElement(confWriter, "SustainIsActive",
drumKit ? "false" : "true");
- writeElement(confWriter, "Sustain", "0");
+ writeElement(confWriter, "SustainPos", "0");
confWriter.writeEndElement();
confWriter.writeEndElement();

Reply all
Reply to author
Forward
0 new messages