Apply the pitch ratio to wavetable oscillator
This commit is contained in:
parent
4065d406f7
commit
2002a58da2
1 changed files with 2 additions and 1 deletions
|
|
@ -506,7 +506,8 @@ void sfz::Voice::fillWithGenerator(AudioSpan<float> buffer) noexcept
|
|||
auto frequencies = tempSpan1.first(buffer.getNumFrames());
|
||||
auto bends = tempSpan2.first(buffer.getNumFrames());
|
||||
|
||||
fill<float>(frequencies, baseFrequency);
|
||||
float keycenterFrequency = midiNoteFrequency(region->pitchKeycenter);
|
||||
fill<float>(frequencies, pitchRatio * keycenterFrequency);
|
||||
|
||||
if (region->bendStep > 1)
|
||||
pitchBendEnvelope.getQuantizedBlock(bends, bendStepFactor);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue