diff --git a/include/note_play_handle.h b/include/note_play_handle.h index 56d24ed49..84fe3b888 100644 --- a/include/note_play_handle.h +++ b/include/note_play_handle.h @@ -222,7 +222,6 @@ private: } ; - InstrumentTrack * m_instrumentTrack; // needed for calling // InstrumentTrack::playNote f_cnt_t m_frames; // total frames to play diff --git a/plugins/audio_file_processor/audio_file_processor.cpp b/plugins/audio_file_processor/audio_file_processor.cpp index 15e4e7b7e..b677502dc 100644 --- a/plugins/audio_file_processor/audio_file_processor.cpp +++ b/plugins/audio_file_processor/audio_file_processor.cpp @@ -72,8 +72,8 @@ audioFileProcessor::audioFileProcessor( InstrumentTrack * _instrument_track ) : Instrument( _instrument_track, &audiofileprocessor_plugin_descriptor ), m_sampleBuffer(), m_ampModel( 100, 0, 500, 1, this, tr( "Amplify" ) ), - m_startPoIntModel( 0, 0, 1, 0.0000001f, this, tr( "Start of sample") ), - m_endPoIntModel( 1, 0, 1, 0.0000001f, this, tr( "End of sample" ) ), + m_startPointModel( 0, 0, 1, 0.0000001f, this, tr( "Start of sample") ), + m_endPointModel( 1, 0, 1, 0.0000001f, this, tr( "End of sample" ) ), m_reverseModel( false, this, tr( "Reverse sample" ) ), m_loopModel( false, this, tr( "Loop") ) { @@ -81,9 +81,9 @@ audioFileProcessor::audioFileProcessor( InstrumentTrack * _instrument_track ) : this, SLOT( reverseModelChanged() ) ); connect( &m_ampModel, SIGNAL( dataChanged() ), this, SLOT( ampModelChanged() ) ); - connect( &m_startPoIntModel, SIGNAL( dataChanged() ), + connect( &m_startPointModel, SIGNAL( dataChanged() ), this, SLOT( loopPointChanged() ) ); - connect( &m_endPoIntModel, SIGNAL( dataChanged() ), + connect( &m_endPointModel, SIGNAL( dataChanged() ), this, SLOT( loopPointChanged() ) ); } @@ -142,8 +142,8 @@ void audioFileProcessor::saveSettings( QDomDocument & _doc, m_reverseModel.saveSettings( _doc, _this, "reversed" ); m_loopModel.saveSettings( _doc, _this, "looped" ); m_ampModel.saveSettings( _doc, _this, "amp" ); - m_startPoIntModel.saveSettings( _doc, _this, "sframe" ); - m_endPoIntModel.saveSettings( _doc, _this, "eframe" ); + m_startPointModel.saveSettings( _doc, _this, "sframe" ); + m_endPointModel.saveSettings( _doc, _this, "eframe" ); } @@ -162,8 +162,8 @@ void audioFileProcessor::loadSettings( const QDomElement & _this ) m_reverseModel.loadSettings( _this, "reversed" ); m_loopModel.loadSettings( _this, "looped" ); m_ampModel.loadSettings( _this, "amp" ); - m_startPoIntModel.loadSettings( _this, "sframe" ); - m_endPoIntModel.loadSettings( _this, "eframe" ); + m_startPointModel.loadSettings( _this, "sframe" ); + m_endPointModel.loadSettings( _this, "eframe" ); loopPointChanged(); } @@ -248,9 +248,9 @@ void audioFileProcessor::ampModelChanged( void ) void audioFileProcessor::loopPointChanged( void ) { - const f_cnt_t f1 = static_cast( m_startPoIntModel.value() * + const f_cnt_t f1 = static_cast( m_startPointModel.value() * ( m_sampleBuffer.frames()-1 ) ); - const f_cnt_t f2 = static_cast( m_endPoIntModel.value() * + const f_cnt_t f2 = static_cast( m_endPointModel.value() * ( m_sampleBuffer.frames()-1 ) ); m_sampleBuffer.setStartFrame( qMin( f1, f2 ) ); m_sampleBuffer.setEndFrame( qMax( f1, f2 ) ); @@ -525,8 +525,8 @@ void AudioFileProcessorView::modelChanged( void ) connect( &a->m_sampleBuffer, SIGNAL( sampleUpdated() ), this, SLOT( sampleUpdated() ) ); m_ampKnob->setModel( &a->m_ampModel ); - m_startKnob->setModel( &a->m_startPoIntModel ); - m_endKnob->setModel( &a->m_endPoIntModel ); + m_startKnob->setModel( &a->m_startPointModel ); + m_endKnob->setModel( &a->m_endPointModel ); m_reverseButton->setModel( &a->m_reverseModel ); m_loopButton->setModel( &a->m_loopModel ); sampleUpdated(); diff --git a/plugins/audio_file_processor/audio_file_processor.h b/plugins/audio_file_processor/audio_file_processor.h index 1ee286d83..ae7f75b39 100644 --- a/plugins/audio_file_processor/audio_file_processor.h +++ b/plugins/audio_file_processor/audio_file_processor.h @@ -82,8 +82,8 @@ private: sampleBuffer m_sampleBuffer; FloatModel m_ampModel; - FloatModel m_startPoIntModel; - FloatModel m_endPoIntModel; + FloatModel m_startPointModel; + FloatModel m_endPointModel; BoolModel m_reverseModel; BoolModel m_loopModel;