mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Fix sample rate
This commit is contained in:
parent
98a27ca2bd
commit
5f5207226d
1 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,8 @@ void WavetableVoice::setCurrentSampleRate (double newRate)
|
|||
|
||||
for (auto& osc : oscillators)
|
||||
osc.setSampleRate (newRate);
|
||||
noise.setSampleRate (newRate);
|
||||
sub.setSampleRate (newRate);
|
||||
|
||||
filter.setSampleRate (newRate);
|
||||
|
||||
|
|
@ -143,6 +145,9 @@ void WavetableVoice::setCurrentSampleRate (double newRate)
|
|||
for (auto& l : modLFOs)
|
||||
l.setSampleRate (newRate);
|
||||
|
||||
for (auto& a : modADSRs)
|
||||
a.setSampleRate (newRate);
|
||||
|
||||
modStepLFO.setSampleRate (newRate);
|
||||
noteSmoother.setSampleRate (newRate);
|
||||
adsr.setSampleRate (newRate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue