Hide pitch-bend knob on vibed instrument.
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1672 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -330,7 +330,7 @@ int main( int argc, char * * argv )
|
||||
sched_get_priority_min( SCHED_FIFO ) ) / 2;
|
||||
if( sched_setscheduler( 0, SCHED_FIFO, &sparam ) == -1 )
|
||||
{
|
||||
printf( "could not set realtime priority.\n" );
|
||||
printf( "Notice: could not set realtime priority.\n" );
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -237,14 +237,14 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
|
||||
|
||||
|
||||
QWidget * paths = new QWidget( ws );
|
||||
int pathsHeight = 346;
|
||||
int pathsHeight = 356;
|
||||
#ifdef LMMS_HAVE_STK
|
||||
pathsHeight += 50;
|
||||
pathsHeight += 55;
|
||||
#endif
|
||||
#ifdef LMMS_HAVE_FLUIDSYNTH
|
||||
pathsHeight += 50;
|
||||
pathsHeight += 55;
|
||||
#endif
|
||||
paths->setFixedSize( 410, pathsHeight );
|
||||
paths->setFixedSize( 360, pathsHeight );
|
||||
QVBoxLayout * dir_layout = new QVBoxLayout( paths );
|
||||
dir_layout->setSpacing( 0 );
|
||||
dir_layout->setMargin( 0 );
|
||||
|
||||
@@ -1259,10 +1259,20 @@ void instrumentTrackWindow::modelChanged( void )
|
||||
|
||||
m_volumeKnob->setModel( &m_track->m_volumeModel );
|
||||
m_panningKnob->setModel( &m_track->m_panningModel );
|
||||
m_pitchKnob->setModel( &m_track->m_pitchModel );
|
||||
m_effectChannelNumber->setModel( &m_track->m_effectChannelModel );
|
||||
m_pianoView->setModel( &m_track->m_piano );
|
||||
|
||||
if( m_track->getInstrument() && m_track->getInstrument()->bendable() )
|
||||
{
|
||||
m_pitchKnob->setModel( &m_track->m_pitchModel );
|
||||
m_pitchKnob->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pitchKnob->hide();
|
||||
m_pitchKnob->setModel( NULL );
|
||||
}
|
||||
|
||||
m_ssView->setModel( &m_track->m_soundShaping );
|
||||
m_chordView->setModel( &m_track->m_chordCreator );
|
||||
m_arpView->setModel( &m_track->m_arpeggiator );
|
||||
@@ -1332,6 +1342,9 @@ void instrumentTrackWindow::updateInstrumentView( void )
|
||||
m_tabWidget );
|
||||
m_tabWidget->addTab( m_instrumentView, tr( "PLUGIN" ), 0 );
|
||||
m_tabWidget->setActiveTab( 0 );
|
||||
|
||||
modelChanged(); // Get the instrument window to refresh
|
||||
m_track->dataChanged(); // Get the text on the trackButton to change
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user