Note, NotePlayHandle: no default arguments for setVolume() and setPanning()
This commit is contained in:
@@ -65,8 +65,8 @@ public:
|
||||
Origin origin = OriginPattern );
|
||||
virtual ~NotePlayHandle();
|
||||
|
||||
virtual void setVolume( const volume_t volume = DefaultVolume );
|
||||
virtual void setPanning( const panning_t panning = DefaultPanning );
|
||||
virtual void setVolume( volume_t volume );
|
||||
virtual void setPanning( panning_t panning );
|
||||
|
||||
int midiVelocity() const
|
||||
{
|
||||
|
||||
@@ -107,8 +107,8 @@ public:
|
||||
void setLength( const MidiTime & _length );
|
||||
void setPos( const MidiTime & _pos );
|
||||
void setKey( const int _key );
|
||||
virtual void setVolume( const volume_t volume = DefaultVolume );
|
||||
virtual void setPanning( const panning_t panning = DefaultPanning );
|
||||
virtual void setVolume( volume_t volume );
|
||||
virtual void setPanning( panning_t panning );
|
||||
void quantizeLength( const int _q_grid );
|
||||
void quantizePos( const int _q_grid );
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ NotePlayHandle::~NotePlayHandle()
|
||||
|
||||
|
||||
|
||||
void NotePlayHandle::setVolume( const volume_t _volume )
|
||||
void NotePlayHandle::setVolume( volume_t _volume )
|
||||
{
|
||||
note::setVolume( _volume );
|
||||
|
||||
@@ -158,7 +158,7 @@ void NotePlayHandle::setVolume( const volume_t _volume )
|
||||
|
||||
|
||||
|
||||
void NotePlayHandle::setPanning( const panning_t panning )
|
||||
void NotePlayHandle::setPanning( panning_t panning )
|
||||
{
|
||||
note::setPanning( panning );
|
||||
|
||||
|
||||
@@ -124,9 +124,9 @@ void note::setKey( const int _key )
|
||||
|
||||
|
||||
|
||||
void note::setVolume( const volume_t _volume )
|
||||
void note::setVolume( volume_t _volume )
|
||||
{
|
||||
const volume_t v = tLimit( _volume, MinVolume, MaxVolume );
|
||||
const volume_t v = qBound( MinVolume, _volume, MaxVolume );
|
||||
// addJournalEntry( journalEntry( ChangeVolume, (int) m_volume - v ) );
|
||||
m_volume = v;
|
||||
}
|
||||
@@ -134,9 +134,9 @@ void note::setVolume( const volume_t _volume )
|
||||
|
||||
|
||||
|
||||
void note::setPanning( const panning_t _panning )
|
||||
void note::setPanning( panning_t _panning )
|
||||
{
|
||||
const panning_t p = tLimit( _panning, PanningLeft, PanningRight );
|
||||
const panning_t p = qBound( PanningLeft, _panning, PanningRight );
|
||||
// addJournalEntry( journalEntry( ChangePanning, (int) m_panning - p ) );
|
||||
m_panning = p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user