AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

commit 3d7a4a2ea4c7b8a6a437afb87c476caad21b07c6
parent c21662b160564a4e6909db05721230bb8b803973
Author: jatinchowdhury18 <jatinchowdhury18@users.noreply.github.com>
Date:   Fri, 24 Jul 2020 10:08:30 -0700

Clean up function pointer notation

Diffstat:
MPlugin/Source/Processors/Hysteresis/HysteresisProcessing.h | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Plugin/Source/Processors/Hysteresis/HysteresisProcessing.h b/Plugin/Source/Processors/Hysteresis/HysteresisProcessing.h @@ -31,7 +31,7 @@ public: inline double process (double H) noexcept { double H_d = deriv (H, H_n1, H_d_n1); - double M = (*this.*solver) (H, H_d); + double M = (this->*solver) (H, H_d); if (std::isnan (M) || M > upperLim) { @@ -70,7 +70,8 @@ private: int numIter = 0; // solver function pointer - double (HysteresisProcessing::*solver) (double, double) = &HysteresisProcessing::NR; + using Solver = double (HysteresisProcessing::*) (double, double); + Solver solver = &HysteresisProcessing::NR; // parameter values double fs = 48000.0;