mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:47:34 +00:00
Userland: Prefer _string
over _short_string
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
parent
a5edc9cdfc
commit
3f35ffb648
198 changed files with 684 additions and 684 deletions
|
@ -12,9 +12,9 @@ namespace DSP::Effects {
|
|||
|
||||
Delay::Delay(NonnullRefPtr<Transport> transport)
|
||||
: EffectProcessor(move(transport))
|
||||
, m_delay_decay("Decay"_short_string, 0.01, 0.99, 0.33, Logarithmic::No)
|
||||
, m_delay_decay("Decay"_string, 0.01, 0.99, 0.33, Logarithmic::No)
|
||||
, m_delay_time("Delay Time"_string, 3, 2000, 900, Logarithmic::Yes)
|
||||
, m_dry_gain("Dry"_short_string, 0, 1, 0.9, Logarithmic::No)
|
||||
, m_dry_gain("Dry"_string, 0, 1, 0.9, Logarithmic::No)
|
||||
{
|
||||
|
||||
m_parameters.append(m_delay_decay);
|
||||
|
@ -59,9 +59,9 @@ void Delay::process_impl(Signal const& input_signal, Signal& output_signal)
|
|||
|
||||
Mastering::Mastering(NonnullRefPtr<Transport> transport)
|
||||
: EffectProcessor(move(transport))
|
||||
, m_pan("Pan"_short_string, -1, 1, 0, Logarithmic::No)
|
||||
, m_volume("Volume"_short_string, 0, 1, 1, Logarithmic::No)
|
||||
, m_muted("Mute"_short_string, false)
|
||||
, m_pan("Pan"_string, -1, 1, 0, Logarithmic::No)
|
||||
, m_volume("Volume"_string, 0, 1, 1, Logarithmic::No)
|
||||
, m_muted("Mute"_string, false)
|
||||
{
|
||||
m_parameters.append(m_muted);
|
||||
m_parameters.append(m_volume);
|
||||
|
|
|
@ -20,10 +20,10 @@ namespace DSP::Synthesizers {
|
|||
Classic::Classic(NonnullRefPtr<Transport> transport)
|
||||
: DSP::SynthesizerProcessor(move(transport))
|
||||
, m_waveform("Waveform"_string, Waveform::Saw)
|
||||
, m_attack("Attack"_short_string, 0.01, 2000, 5, Logarithmic::Yes)
|
||||
, m_decay("Decay"_short_string, 0.01, 20'000, 80, Logarithmic::Yes)
|
||||
, m_sustain("Sustain"_short_string, 0.001, 1, 0.725, Logarithmic::No)
|
||||
, m_release("Release"_short_string, 0.01, 6'000, 120, Logarithmic::Yes)
|
||||
, m_attack("Attack"_string, 0.01, 2000, 5, Logarithmic::Yes)
|
||||
, m_decay("Decay"_string, 0.01, 20'000, 80, Logarithmic::Yes)
|
||||
, m_sustain("Sustain"_string, 0.001, 1, 0.725, Logarithmic::No)
|
||||
, m_release("Release"_string, 0.01, 6'000, 120, Logarithmic::Yes)
|
||||
{
|
||||
m_parameters.append(m_waveform);
|
||||
m_parameters.append(m_attack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue