added automation to many knobs
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@173 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -217,7 +217,8 @@ arpAndChordsTabWidget::arpAndChordsTabWidget( instrumentTrack * _instrument_trac
|
||||
}
|
||||
|
||||
m_chordRangeKnob = new knob( knobBright_26, m_chordsGroupBox,
|
||||
tr( "Chord range" ), eng() );
|
||||
tr( "Chord range" ),
|
||||
eng(), _instrument_track );
|
||||
m_chordRangeKnob->setLabel( tr( "RANGE" ) );
|
||||
m_chordRangeKnob->setRange( 1.0f, 9.0f, 1.0f );
|
||||
m_chordRangeKnob->setInitValue( 1.0f );
|
||||
@@ -269,7 +270,8 @@ arpAndChordsTabWidget::arpAndChordsTabWidget( instrumentTrack * _instrument_trac
|
||||
|
||||
|
||||
m_arpRangeKnob = new knob( knobBright_26, m_arpGroupBox,
|
||||
tr( "Arpeggio range" ), eng() );
|
||||
tr( "Arpeggio range" ),
|
||||
eng(), _instrument_track );
|
||||
m_arpRangeKnob->setLabel( tr( "RANGE" ) );
|
||||
m_arpRangeKnob->setRange( 1.0f, 9.0f, 1.0f );
|
||||
m_arpRangeKnob->setInitValue( 1.0f );
|
||||
@@ -286,7 +288,8 @@ arpAndChordsTabWidget::arpAndChordsTabWidget( instrumentTrack * _instrument_trac
|
||||
"amount of octaves." ) );
|
||||
|
||||
m_arpTimeKnob = new tempoSyncKnob( knobBright_26, m_arpGroupBox,
|
||||
tr( "Arpeggio time" ), eng() );
|
||||
tr( "Arpeggio time" ),
|
||||
eng(), _instrument_track );
|
||||
m_arpTimeKnob->setLabel( tr( "TIME" ) );
|
||||
m_arpTimeKnob->setRange( 25.0f, 2000.0f, 1.0f );
|
||||
m_arpTimeKnob->setInitValue( 100.0f );
|
||||
@@ -303,7 +306,8 @@ arpAndChordsTabWidget::arpAndChordsTabWidget( instrumentTrack * _instrument_trac
|
||||
"each arpeggio-tone should be played." ) );
|
||||
|
||||
m_arpGateKnob = new knob( knobBright_26, m_arpGroupBox,
|
||||
tr( "Arpeggio gate" ), eng() );
|
||||
tr( "Arpeggio gate" ),
|
||||
eng(), _instrument_track );
|
||||
m_arpGateKnob->setLabel( tr( "GATE" ) );
|
||||
m_arpGateKnob->setRange( 1.0f, 200.0f, 1.0f );
|
||||
m_arpGateKnob->setInitValue( 100.0f );
|
||||
@@ -649,13 +653,13 @@ void arpAndChordsTabWidget::saveSettings( QDomDocument & _doc,
|
||||
{
|
||||
_this.setAttribute( "chorddisabled", !m_chordsGroupBox->isActive() );
|
||||
_this.setAttribute( "chord", m_chordsComboBox->value() );
|
||||
_this.setAttribute( "chordrange", m_chordRangeKnob->value() );
|
||||
m_chordRangeKnob->saveSettings( _doc, _this, "chordrange" );
|
||||
|
||||
_this.setAttribute( "arpdisabled", !m_arpGroupBox->isActive() );
|
||||
_this.setAttribute( "arp", m_arpComboBox->value() );
|
||||
_this.setAttribute( "arprange", m_arpRangeKnob->value() );
|
||||
_this.setAttribute( "arptime", m_arpTimeKnob->value() );
|
||||
_this.setAttribute( "arpgate", m_arpGateKnob->value() );
|
||||
m_arpRangeKnob->saveSettings( _doc, _this, "arprange" );
|
||||
m_arpTimeKnob->saveSettings( _doc, _this, "arptime" );
|
||||
m_arpGateKnob->saveSettings( _doc, _this, "arpgate" );
|
||||
_this.setAttribute( "arpdir", m_arpDirectionBtnGrp->value() + 1 );
|
||||
_this.setAttribute( "arpsyncmode",
|
||||
( int ) m_arpTimeKnob->getSyncMode() );
|
||||
@@ -671,11 +675,11 @@ void arpAndChordsTabWidget::loadSettings( const QDomElement & _this )
|
||||
m_chordsGroupBox->setState( !_this.attribute
|
||||
( "chorddisabled" ).toInt() );
|
||||
m_chordsComboBox->setValue( _this.attribute( "chord" ).toInt() );
|
||||
m_chordRangeKnob->setValue( _this.attribute( "chordrange" ).toFloat() );
|
||||
m_chordRangeKnob->loadSettings( _this, "chordrange" );
|
||||
m_arpComboBox->setValue( _this.attribute( "arp" ).toInt() );
|
||||
m_arpRangeKnob->setValue( _this.attribute( "arprange" ).toFloat() );
|
||||
m_arpTimeKnob->setValue( _this.attribute( "arptime" ).toFloat() );
|
||||
m_arpGateKnob->setValue( _this.attribute( "arpgate" ).toFloat() );
|
||||
m_arpRangeKnob->loadSettings( _this, "arprange" );
|
||||
m_arpTimeKnob->loadSettings( _this, "arptime" );
|
||||
m_arpGateKnob->loadSettings( _this, "arpgate" );
|
||||
m_arpDirectionBtnGrp->setInitValue(
|
||||
_this.attribute( "arpdir" ).toInt() - 1 );
|
||||
m_arpTimeKnob->setSyncMode(
|
||||
|
||||
@@ -121,7 +121,8 @@ envelopeTabWidget::envelopeTabWidget( instrumentTrack * _instrument_track ) :
|
||||
m_envLFOWidgets[i] = new envelopeAndLFOWidget(
|
||||
value_for_zero_amount,
|
||||
m_targetsTabWidget,
|
||||
eng() );
|
||||
eng(),
|
||||
_instrument_track );
|
||||
m_targetsTabWidget->addTab( m_envLFOWidgets[i],
|
||||
tr( targetNames[i][0]
|
||||
#ifdef QT4
|
||||
@@ -173,8 +174,9 @@ envelopeTabWidget::envelopeTabWidget( instrumentTrack * _instrument_track ) :
|
||||
"for changing the characteristics of a sound." ) );
|
||||
|
||||
|
||||
m_filterCutKnob = new knob( knobBright_26, m_filterGroupBox, tr(
|
||||
"cutoff-frequency" ), eng() );
|
||||
m_filterCutKnob = new knob( knobBright_26, m_filterGroupBox,
|
||||
tr( "cutoff-frequency" ),
|
||||
eng(), _instrument_track );
|
||||
m_filterCutKnob->setLabel( tr( "CUTOFF" ) );
|
||||
m_filterCutKnob->setRange( 0.0, 14000.0, 1.0 );
|
||||
m_filterCutKnob->move( 140, 18 );
|
||||
@@ -193,8 +195,9 @@ envelopeTabWidget::envelopeTabWidget( instrumentTrack * _instrument_track ) :
|
||||
"the cutoff-frequency. A highpass-filter cuts all "
|
||||
"frequencies below cutoff-frequency and so on..." ) );
|
||||
|
||||
m_filterResKnob = new knob( knobBright_26, m_filterGroupBox, tr(
|
||||
"Q/Resonance" ), eng() );
|
||||
m_filterResKnob = new knob( knobBright_26, m_filterGroupBox,
|
||||
tr( "Q/Resonance" ),
|
||||
eng(), _instrument_track );
|
||||
m_filterResKnob->setLabel( tr( "Q/RESO" ) );
|
||||
m_filterResKnob->setRange( 0.01, 10.0, 0.01 );
|
||||
m_filterResKnob->move( 190, 18 );
|
||||
@@ -502,8 +505,8 @@ f_cnt_t envelopeTabWidget::releaseFrames( const bool _only_vol )
|
||||
void envelopeTabWidget::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
{
|
||||
_this.setAttribute( "ftype", m_filterComboBox->value() );
|
||||
_this.setAttribute( "fcut", m_filterCutKnob->value() );
|
||||
_this.setAttribute( "fres", m_filterResKnob->value() );
|
||||
m_filterCutKnob->saveSettings( _doc, _this, "fcut" );
|
||||
m_filterResKnob->saveSettings( _doc, _this, "fres" );
|
||||
_this.setAttribute( "fwet", m_filterGroupBox->isActive() );
|
||||
|
||||
for( int i = 0; i < TARGET_COUNT; ++i )
|
||||
@@ -520,8 +523,8 @@ void envelopeTabWidget::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
void envelopeTabWidget::loadSettings( const QDomElement & _this )
|
||||
{
|
||||
m_filterComboBox->setValue( _this.attribute( "ftype" ).toInt() );
|
||||
m_filterCutKnob->setValue( _this.attribute( "fcut" ).toFloat() );
|
||||
m_filterResKnob->setValue( _this.attribute( "fres" ).toFloat() );
|
||||
m_filterCutKnob->loadSettings( _this, "fcut" );
|
||||
m_filterResKnob->loadSettings( _this, "fres" );
|
||||
/* m_filterState->setChecked( _this.attribute( "fwet" ).toInt() );*/
|
||||
m_filterGroupBox->setState( _this.attribute( "fwet" ).toInt() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user