Skip to content

Commit

Permalink
Merge pull request #655 from paulfd/delay
Browse files Browse the repository at this point in the history
Delay every modulation by the initial voice delay
  • Loading branch information
jpcima authored Feb 28, 2021
2 parents 9ad1e7f + 7d53fd9 commit 7b1a022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sfizz/Voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7b1a022

Please sign in to comment.