mirror of
https://codeberg.org/armin/horizont.git
synced 2026-09-01 04:10:46 +02:00
fix pitch feedback loop; tune analyzer UI and dry/wet reflection
This commit is contained in:
parent
b1b83104a7
commit
2359bfd579
5 changed files with 57 additions and 33 deletions
|
|
@ -120,6 +120,8 @@ void HorizontAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juc
|
|||
const bool haveLeft = buffer.getNumChannels() > 0 && inputChannels > 0;
|
||||
const bool haveRight = buffer.getNumChannels() > 1 && inputChannels > 1;
|
||||
const bool canCaptureWet = wetScratch.size() >= (size_t) numSamples;
|
||||
const float wetVal = dryWetParam->load();
|
||||
const float dryGain = 1.0f - wetVal;
|
||||
|
||||
for (int s = 0; s < numSamples; ++s)
|
||||
{
|
||||
|
|
@ -136,8 +138,8 @@ void HorizontAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juc
|
|||
|
||||
if (canCaptureWet)
|
||||
{
|
||||
wetScratch[(size_t) s] = engine.getLastWetL();
|
||||
dryScratch[(size_t) s] = inL;
|
||||
wetScratch[(size_t) s] = engine.getLastWetL() * wetVal;
|
||||
dryScratch[(size_t) s] = inL * dryGain;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue