Store the normalized CC modifier

This commit is contained in:
Paul Ferrand 2020-03-29 17:11:50 +02:00
parent 42fa89ab5a
commit af05e0cbde

View file

@ -302,7 +302,7 @@ bool sfz::Region::parseOpcode(const Opcode& opcode)
if (opcode.parameters.back() > config::numCCs)
return false;
if (auto value = readOpcode(opcode.value, Default::amplitudeRange))
amplitudeCC[opcode.parameters.back()] = *value;
amplitudeCC[opcode.parameters.back()] = normalizePercents(*value);
break;
case hash("pan"):
setValueFromOpcode(opcode, pan, Default::panRange);