diff --git a/include/instrument_track.h b/include/instrument_track.h index e9cf2bcac..3922396b0 100644 --- a/include/instrument_track.h +++ b/include/instrument_track.h @@ -180,9 +180,9 @@ private: QList m_processHandles; - intModel m_volumeModel; - intModel m_panningModel; - intModel m_pitchModel; + floatModel m_volumeModel; + floatModel m_panningModel; + floatModel m_pitchModel; intModel m_effectChannelModel; diff --git a/src/tracks/instrument_track.cpp b/src/tracks/instrument_track.cpp index 0ef8cc3f3..e023e6250 100644 --- a/src/tracks/instrument_track.cpp +++ b/src/tracks/instrument_track.cpp @@ -101,11 +101,11 @@ instrumentTrack::instrumentTrack( trackContainer * _tc ) : this, this ), m_notes(), m_baseNoteModel( 0, 0, KeysPerOctave * NumOctaves - 1, this ), - m_volumeModel( DefaultVolume, MinVolume, MaxVolume, this, + m_volumeModel( DefaultVolume, MinVolume, MaxVolume, 1, this, tr( "Volume" ) ), - m_panningModel( DefaultPanning, PanningLeft, PanningRight, + m_panningModel( DefaultPanning, PanningLeft, PanningRight, 1, this, tr( "Panning" ) ), - m_pitchModel( 0, -100, 100, this, tr( "Pitch" ) ), + m_pitchModel( 0, -100, 100, 1, this, tr( "Pitch" ) ), m_effectChannelModel( 0, 0, NumFxChannels, this, tr( "FX channel" ) ), m_instrument( NULL ), m_soundShaping( this ),