mirror of
https://codeberg.org/armin/trommelkiste.git
synced 2026-09-01 04:10:46 +02:00
Boost output volume and default track level
This commit is contained in:
parent
801c461970
commit
d63aa00922
1 changed files with 5 additions and 5 deletions
|
|
@ -202,8 +202,8 @@ void TrommelkisteProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce:
|
||||||
const float gain = level * effVel;
|
const float gain = level * effVel;
|
||||||
|
|
||||||
const float panAngle = (pan + 1.0f) * 0.25f * juce::MathConstants<float>::pi;
|
const float panAngle = (pan + 1.0f) * 0.25f * juce::MathConstants<float>::pi;
|
||||||
const float panL = std::cos(panAngle) * juce::Decibels::decibelsToGain(-3.0f);
|
const float panL = std::cos(panAngle);
|
||||||
const float panR = std::sin(panAngle) * juce::Decibels::decibelsToGain(-3.0f);
|
const float panR = std::sin(panAngle);
|
||||||
|
|
||||||
const float* sData = track.buffer.getReadPointer(0);
|
const float* sData = track.buffer.getReadPointer(0);
|
||||||
const bool hasR = track.buffer.getNumChannels() > 1;
|
const bool hasR = track.buffer.getNumChannels() > 1;
|
||||||
|
|
@ -354,8 +354,8 @@ void TrommelkisteProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce:
|
||||||
const float masterVol = apvts.getRawParameterValue("master_volume")->load();
|
const float masterVol = apvts.getRawParameterValue("master_volume")->load();
|
||||||
const float masterPan = apvts.getRawParameterValue("master_pan")->load();
|
const float masterPan = apvts.getRawParameterValue("master_pan")->load();
|
||||||
const float mPanAngle = (masterPan + 1.0f) * 0.25f * MathConstants<float>::pi;
|
const float mPanAngle = (masterPan + 1.0f) * 0.25f * MathConstants<float>::pi;
|
||||||
const float mPanL = std::cos(mPanAngle) * Decibels::decibelsToGain(-3.0f);
|
const float mPanL = std::cos(mPanAngle);
|
||||||
const float mPanR = std::sin(mPanAngle) * Decibels::decibelsToGain(-3.0f);
|
const float mPanR = std::sin(mPanAngle);
|
||||||
|
|
||||||
for (int s = 0; s < numSamples; ++s)
|
for (int s = 0; s < numSamples; ++s)
|
||||||
{
|
{
|
||||||
|
|
@ -745,7 +745,7 @@ juce::AudioProcessorValueTreeState::ParameterLayout TrommelkisteProcessor::creat
|
||||||
|
|
||||||
layout.add(std::make_unique<AudioParameterFloat>(
|
layout.add(std::make_unique<AudioParameterFloat>(
|
||||||
p + "level", tn + "Level",
|
p + "level", tn + "Level",
|
||||||
NormalisableRange<float>(0.0f, 1.0f), 0.8f));
|
NormalisableRange<float>(0.0f, 1.0f), 1.0f));
|
||||||
|
|
||||||
layout.add(std::make_unique<AudioParameterFloat>(
|
layout.add(std::make_unique<AudioParameterFloat>(
|
||||||
p + "length", tn + "Length",
|
p + "length", tn + "Length",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue