Revision: d81a2a0ccf5b
Author: Devin Anderson <
surface...@gmail.com>
Date: Mon Feb 18 22:59:58 2013
Log: Use mute groups and one-shot mode when creating an SFZ drum kit.
http://code.google.com/p/synthclone/source/detail?r=d81a2a0ccf5b
Modified:
/src/plugins/sfz/target.cpp
=======================================
--- /src/plugins/sfz/target.cpp Sun Oct 9 12:02:52 2011
+++ /src/plugins/sfz/target.cpp Mon Feb 18 22:59:58 2013
@@ -265,6 +265,7 @@
for (int noteIndex = 0; noteIndex < noteCount; noteIndex++) {
+ QString muteGroup = QString::number(noteIndex);
synthclone::MIDIData note = notes[noteIndex];
QString noteStr = QString::number(note);
VelocityZoneMap *velocityZoneMap = noteZoneMap->value(note);
@@ -290,6 +291,9 @@
if (drumKit) {
writeOpcode(commonRegionData, "key", noteStr);
writeOpcode(commonRegionData, "pitch_keytrack", "0");
+ writeOpcode(commonRegionData, "loop_mode", "one_shot");
+ writeOpcode(commonRegionData, "group", muteGroup);
+ writeOpcode(commonRegionData, "off_by", muteGroup);
hiKey = note;
loKey = note;
} else {