amp_random is only between 0-24 dB

This commit is contained in:
Paul Ferrand 2019-12-20 01:11:46 +01:00
parent 89a305075b
commit 3709c4065f

View file

@ -312,7 +312,7 @@ bool sfz::Region::parseOpcode(const Opcode& opcode)
break; break;
case hash("amp_random"): case hash("amp_random"):
setValueFromOpcode(opcode, ampRandom, Default::ampRandomRange); setValueFromOpcode(opcode, ampRandom, Default::ampRandomRange);
volumeDistribution.param(std::uniform_real_distribution<float>::param_type(-ampRandom, ampRandom)); volumeDistribution.param(std::uniform_real_distribution<float>::param_type(0, ampRandom));
break; break;
case hash("amp_velcurve_"): case hash("amp_velcurve_"):
{ {