Merge pull request #655 from paulfd/delay

Delay every modulation by the initial voice delay
This commit is contained in:
JP Cimalando 2021-02-28 04:14:57 +01:00 committed by GitHub
commit 7b1a022565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,7 +420,7 @@ void Voice::startVoice(Region* region, int delay, const TriggerEvent& event) noe
impl.bendSmoother_.setSmoothing(region->bendSmooth, impl.sampleRate_);
impl.bendSmoother_.reset(centsFactor(region->getBendInCents(impl.resources_.midiState.getPitchBend())));
impl.resources_.modMatrix.initVoice(impl.id_, region->getId(), delay);
impl.resources_.modMatrix.initVoice(impl.id_, region->getId(), impl.initialDelay_);
impl.saveModulationTargets(region);
}