Merge pull request #2198 from curlymorphic/1932

Revert Correct Priority of fade button
This commit is contained in:
Dave
2015-07-23 11:48:23 +01:00
2 changed files with 5 additions and 14 deletions

View File

@@ -206,13 +206,13 @@ public:
return &m_effectChannelModel;
}
void setIndicator( FadeButton *fb );
signals:
void instrumentChanged();
void midiNoteOn( const Note& );
void midiNoteOff( const Note& );
void nameChanged();
void newNote();
protected:
@@ -255,8 +255,6 @@ private:
IntModel m_effectChannelModel;
BoolModel m_useMasterPitchModel;
FadeButton *m_fb;
Instrument * m_instrument;
InstrumentSoundShaping m_soundShaping;

View File

@@ -51,7 +51,6 @@
#include "EffectRackView.h"
#include "embed.h"
#include "Engine.h"
#include "FadeButton.h"
#include "FileBrowser.h"
#include "FxMixer.h"
#include "FxMixerView.h"
@@ -116,7 +115,6 @@ InstrumentTrack::InstrumentTrack( TrackContainer* tc ) :
m_pitchRangeModel( 1, 1, 24, this, tr( "Pitch range" ) ),
m_effectChannelModel( 0, 0, 0, this, tr( "FX channel" ) ),
m_useMasterPitchModel( true, this, tr( "Master Pitch") ),
m_fb( NULL ),
m_instrument( NULL ),
m_soundShaping( this ),
m_arpeggio( this ),
@@ -391,7 +389,7 @@ void InstrumentTrack::processOutEvent( const MidiEvent& event, const MidiTime& t
}
m_midiNotesMutex.unlock();
if( m_fb ) { m_fb->activate(); }
emit newNote();
break;
case MidiNoteOff:
@@ -573,12 +571,6 @@ void InstrumentTrack::removeMidiPortNode( DataFile & _dataFile )
n.item( 0 ).parentNode().removeChild( n.item( 0 ) );
}
void InstrumentTrack::setIndicator(FadeButton *fb)
{
m_fb = fb;
}
@@ -930,7 +922,8 @@ InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerV
this, SLOT( activityIndicatorPressed() ) );
connect( m_activityIndicator, SIGNAL( released() ),
this, SLOT( activityIndicatorReleased() ) );
_it->setIndicator( m_activityIndicator );
connect( _it, SIGNAL( newNote() ),
m_activityIndicator, SLOT( activate() ) );
connect( &_it->m_mutedModel, SIGNAL( dataChanged() ), this, SLOT( muteChanged() ) );
setModel( _it );
@@ -1779,4 +1772,4 @@ void InstrumentTrackWindow::viewNextInstrument()
void InstrumentTrackWindow::viewPrevInstrument()
{
viewInstrumentInDirection(-1);
}
}