mirror of
https://codeberg.org/armin/trommelkiste.git
synced 2026-09-01 04:10:46 +02:00
Fix layout issues, replace screenshot
This commit is contained in:
parent
2cded52eef
commit
c774d521c8
4 changed files with 54 additions and 40 deletions
|
|
@ -341,6 +341,17 @@ void TrommelkisteProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce:
|
|||
if (outR)
|
||||
outR[s] = tmpR;
|
||||
}
|
||||
|
||||
float peak = 0.0f;
|
||||
for (int s = 0; s < numSamples; ++s)
|
||||
{
|
||||
float a = std::abs(outL[s]);
|
||||
if (outR)
|
||||
a = jmax(a, std::abs(outR[s]));
|
||||
if (a > peak)
|
||||
peak = a;
|
||||
}
|
||||
outputLevel.store(peak, std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
int TrommelkisteProcessor::findFreeVoice(int trackIndex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue