Skip to content

Commit

Permalink
Move the code of some getters
Browse files Browse the repository at this point in the history
Move the code of some getters into the header file.
  • Loading branch information
michaelgregorius committed Aug 12, 2024
1 parent 5cddd07 commit 09ac77b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
12 changes: 6 additions & 6 deletions include/InstrumentSoundShaping.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class InstrumentSoundShaping : public Model, public JournallingObject
void processAudioBuffer( SampleFrame* _ab, const fpp_t _frames,
NotePlayHandle * _n );

const EnvelopeAndLfoParameters& getVolumeParameters() const;
EnvelopeAndLfoParameters& getVolumeParameters();
const EnvelopeAndLfoParameters& getVolumeParameters() const { return m_volumeParameters; }
EnvelopeAndLfoParameters& getVolumeParameters() { return m_volumeParameters; }

const EnvelopeAndLfoParameters& getCutoffParameters() const;
EnvelopeAndLfoParameters& getCutoffParameters();
const EnvelopeAndLfoParameters& getCutoffParameters() const { return m_cutoffParameters; }
EnvelopeAndLfoParameters& getCutoffParameters() { return m_cutoffParameters; }

const EnvelopeAndLfoParameters& getResonanceParameters() const;
EnvelopeAndLfoParameters& getResonanceParameters();
const EnvelopeAndLfoParameters& getResonanceParameters() const { return m_resonanceParameters; }
EnvelopeAndLfoParameters& getResonanceParameters() { return m_resonanceParameters; }

BoolModel& getFilterEnabledModel() { return m_filterEnabledModel; }
ComboBoxModel& getFilterModel() { return m_filterModel; }
Expand Down
30 changes: 0 additions & 30 deletions src/core/InstrumentSoundShaping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,36 +369,6 @@ void InstrumentSoundShaping::loadSettings( const QDomElement & _this )
}
}

const EnvelopeAndLfoParameters& InstrumentSoundShaping::getVolumeParameters() const
{
return m_volumeParameters;
}

EnvelopeAndLfoParameters& InstrumentSoundShaping::getVolumeParameters()
{
return m_volumeParameters;
}

const EnvelopeAndLfoParameters& InstrumentSoundShaping::getCutoffParameters() const
{
return m_cutoffParameters;
}

EnvelopeAndLfoParameters& InstrumentSoundShaping::getCutoffParameters()
{
return m_cutoffParameters;
}

const EnvelopeAndLfoParameters& InstrumentSoundShaping::getResonanceParameters() const
{
return m_resonanceParameters;
}

EnvelopeAndLfoParameters& InstrumentSoundShaping::getResonanceParameters()
{
return m_resonanceParameters;
}

QString InstrumentSoundShaping::getVolumeNodeName() const
{
return getVolumeParameters().nodeName() + "vol";
Expand Down

0 comments on commit 09ac77b

Please sign in to comment.