Redesign Crossover Equalizer (#2994)
* Redesign Crossover Equalizer * Make it all pixel perfect
@@ -152,7 +152,7 @@ bool CrossoverEQEffect::processAudioBuffer( sampleFrame* buf, const fpp_t frames
|
||||
}
|
||||
|
||||
// run band 1
|
||||
if( ! mute1 )
|
||||
if( mute1 )
|
||||
{
|
||||
for( int f = 0; f < frames; ++f )
|
||||
{
|
||||
@@ -162,7 +162,7 @@ bool CrossoverEQEffect::processAudioBuffer( sampleFrame* buf, const fpp_t frames
|
||||
}
|
||||
|
||||
// run band 2
|
||||
if( ! mute2 )
|
||||
if( mute2 )
|
||||
{
|
||||
for( int f = 0; f < frames; ++f )
|
||||
{
|
||||
@@ -172,7 +172,7 @@ bool CrossoverEQEffect::processAudioBuffer( sampleFrame* buf, const fpp_t frames
|
||||
}
|
||||
|
||||
// run band 3
|
||||
if( ! mute3 )
|
||||
if( mute3 )
|
||||
{
|
||||
for( int f = 0; f < frames; ++f )
|
||||
{
|
||||
@@ -182,7 +182,7 @@ bool CrossoverEQEffect::processAudioBuffer( sampleFrame* buf, const fpp_t frames
|
||||
}
|
||||
|
||||
// run band 4
|
||||
if( ! mute4 )
|
||||
if( mute4 )
|
||||
{
|
||||
for( int f = 0; f < frames; ++f )
|
||||
{
|
||||
|
||||
@@ -42,23 +42,23 @@ CrossoverEQControlDialog::CrossoverEQControlDialog( CrossoverEQControls * contro
|
||||
QPalette pal;
|
||||
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap( "artwork" ) );
|
||||
setPalette( pal );
|
||||
setFixedSize( 167, 188 );
|
||||
setFixedSize( 167, 178 );
|
||||
|
||||
// knobs
|
||||
Knob * xover12 = new Knob( knobBright_26, this );
|
||||
xover12->move( 29, 15 );
|
||||
xover12->move( 29, 11 );
|
||||
xover12->setModel( & controls->m_xover12 );
|
||||
xover12->setLabel( "1/2" );
|
||||
xover12->setHintText( tr( "Band 1/2 Crossover:" ), " Hz" );
|
||||
|
||||
Knob * xover23 = new Knob( knobBright_26, this );
|
||||
xover23->move( 69, 15 );
|
||||
xover23->move( 69, 11 );
|
||||
xover23->setModel( & controls->m_xover23 );
|
||||
xover23->setLabel( "2/3" );
|
||||
xover23->setHintText( tr( "Band 2/3 Crossover:" ), " Hz" );
|
||||
|
||||
Knob * xover34 = new Knob( knobBright_26, this );
|
||||
xover34->move( 109, 15 );
|
||||
xover34->move( 109, 11 );
|
||||
xover34->setModel( & controls->m_xover34 );
|
||||
xover34->setLabel( "3/4" );
|
||||
xover34->setHintText( tr( "Band 3/4 Crossover:" ), " Hz" );
|
||||
@@ -93,23 +93,23 @@ CrossoverEQControlDialog::CrossoverEQControlDialog( CrossoverEQControls * contro
|
||||
gain4->setHintText( tr( "Band 4 Gain:" ), " dBV" );
|
||||
|
||||
// leds
|
||||
LedCheckBox * mute1 = new LedCheckBox( "M", this, tr( "Band 1 Mute" ), LedCheckBox::Red );
|
||||
mute1->move( 11, 158 );
|
||||
LedCheckBox * mute1 = new LedCheckBox( "", this, tr( "Band 1 Mute" ), LedCheckBox::Green );
|
||||
mute1->move( 15, 154 );
|
||||
mute1->setModel( & controls->m_mute1 );
|
||||
ToolTip::add( mute1, tr( "Mute Band 1" ) );
|
||||
|
||||
LedCheckBox * mute2 = new LedCheckBox( "M", this, tr( "Band 2 Mute" ), LedCheckBox::Red );
|
||||
mute2->move( 51, 158 );
|
||||
LedCheckBox * mute2 = new LedCheckBox( "", this, tr( "Band 2 Mute" ), LedCheckBox::Green );
|
||||
mute2->move( 55, 154 );
|
||||
mute2->setModel( & controls->m_mute2 );
|
||||
ToolTip::add( mute2, tr( "Mute Band 2" ) );
|
||||
|
||||
LedCheckBox * mute3 = new LedCheckBox( "M", this, tr( "Band 3 Mute" ), LedCheckBox::Red );
|
||||
mute3->move( 91, 158 );
|
||||
LedCheckBox * mute3 = new LedCheckBox( "", this, tr( "Band 3 Mute" ), LedCheckBox::Green );
|
||||
mute3->move( 95, 154 );
|
||||
mute3->setModel( & controls->m_mute3 );
|
||||
ToolTip::add( mute3, tr( "Mute Band 3" ) );
|
||||
|
||||
LedCheckBox * mute4 = new LedCheckBox( "M", this, tr( "Band 4 Mute" ), LedCheckBox::Red );
|
||||
mute4->move( 131, 158 );
|
||||
LedCheckBox * mute4 = new LedCheckBox( "", this, tr( "Band 4 Mute" ), LedCheckBox::Green );
|
||||
mute4->move( 135, 154 );
|
||||
mute4->setModel( & controls->m_mute4 );
|
||||
ToolTip::add( mute4, tr( "Mute Band 4" ) );
|
||||
}
|
||||
|
||||
@@ -37,10 +37,10 @@ CrossoverEQControls::CrossoverEQControls( CrossoverEQEffect * eff ) :
|
||||
m_gain2( 0.f, -60.f, 30.f, 0.1f, this, "Band 2 Gain" ),
|
||||
m_gain3( 0.f, -60.f, 30.f, 0.1f, this, "Band 3 Gain" ),
|
||||
m_gain4( 0.f, -60.f, 30.f, 0.1f, this, "Band 4 Gain" ),
|
||||
m_mute1( false, this, "Mute Band 1" ),
|
||||
m_mute2( false, this, "Mute Band 2" ),
|
||||
m_mute3( false, this, "Mute Band 3" ),
|
||||
m_mute4( false, this, "Mute Band 4" )
|
||||
m_mute1( true, this, "Mute Band 1" ),
|
||||
m_mute2( true, this, "Mute Band 2" ),
|
||||
m_mute3( true, this, "Mute Band 3" ),
|
||||
m_mute4( true, this, "Mute Band 4" )
|
||||
{
|
||||
connect( Engine::mixer(), SIGNAL( sampleRateChanged() ), this, SLOT( sampleRateChanged() ) );
|
||||
connect( &m_xover12, SIGNAL( dataChanged() ), this, SLOT( xover12Changed() ) );
|
||||
|
||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 876 B |
|
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 783 B After Width: | Height: | Size: 351 B |