mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Removed smoothing from sync delay time
This commit is contained in:
parent
4afbbc667f
commit
2c94495f02
2 changed files with 16 additions and 12 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
- Added retrigger to oscillators
|
- Added retrigger to oscillators
|
||||||
- Added 25% and 12.5% pulse wave sub oscillators
|
- Added 25% and 12.5% pulse wave sub oscillators
|
||||||
- Added 50 more wavetables
|
- Added 50 more wavetables
|
||||||
|
- Removed smoothing from sync delay time
|
||||||
|
|
||||||
1.0.7:
|
1.0.7:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -698,13 +698,8 @@ void WavetableAudioProcessor::setupModMatrix()
|
||||||
modMatrix.build();
|
modMatrix.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
float WavetableAudioProcessor::getSmoothingTime (gin::Parameter* p)
|
float WavetableAudioProcessor::getSmoothingTime (gin::Parameter*)
|
||||||
{
|
{
|
||||||
if (p == delayParams.delay) return 0.0f;
|
|
||||||
if (p == delayParams.cf) return 0.0f;
|
|
||||||
if (p == delayParams.fb) return 0.0f;
|
|
||||||
if (p == delayParams.mix) return 0.0f;
|
|
||||||
|
|
||||||
return 0.02f;
|
return 0.02f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -873,7 +868,12 @@ void WavetableAudioProcessor::applyEffects (juce::AudioSampleBuffer& buffer)
|
||||||
|
|
||||||
// Apply Delay
|
// Apply Delay
|
||||||
if (delayParams.enable->isOn())
|
if (delayParams.enable->isOn())
|
||||||
|
{
|
||||||
|
if (delayParams.sync->isOn())
|
||||||
|
stereoDelay.process (buffer);
|
||||||
|
else
|
||||||
stereoDelay.processSmoothed (buffer);
|
stereoDelay.processSmoothed (buffer);
|
||||||
|
}
|
||||||
|
|
||||||
// Apply Reverb
|
// Apply Reverb
|
||||||
if (reverbParams.enable->isOn())
|
if (reverbParams.enable->isOn())
|
||||||
|
|
@ -976,17 +976,20 @@ void WavetableAudioProcessor::updateParams (int newBlockSize)
|
||||||
{
|
{
|
||||||
auto& duration = gin::NoteDuration::getNoteDurations()[(size_t)modMatrix.getValue (delayParams.beat)];
|
auto& duration = gin::NoteDuration::getNoteDurations()[(size_t)modMatrix.getValue (delayParams.beat)];
|
||||||
delayParams.delay->setUserValue (duration.toSeconds (getPlayHead()));
|
delayParams.delay->setUserValue (duration.toSeconds (getPlayHead()));
|
||||||
|
stereoDelay.setParams (delayParams.delay->getUserValue(),
|
||||||
|
modMatrix.getValue (delayParams.mix),
|
||||||
|
modMatrix.getValue (delayParams.fb),
|
||||||
|
modMatrix.getValue (delayParams.cf));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
delayParams.delay->setUserValue (modMatrix.getValue (delayParams.time));
|
delayParams.delay->setUserValue (modMatrix.getValue (delayParams.time));
|
||||||
}
|
|
||||||
|
|
||||||
stereoDelay.setParams (modMatrix.getValue (delayParams.delay),
|
stereoDelay.setParams (modMatrix.getValue (delayParams.delay),
|
||||||
modMatrix.getValue (delayParams.mix),
|
modMatrix.getValue (delayParams.mix),
|
||||||
modMatrix.getValue (delayParams.fb),
|
modMatrix.getValue (delayParams.fb),
|
||||||
modMatrix.getValue (delayParams.cf));
|
modMatrix.getValue (delayParams.cf));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update Reverb
|
// Update Reverb
|
||||||
if (reverbParams.enable->isOn())
|
if (reverbParams.enable->isOn())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue