24 #ifndef TUNERALGORITHM_H 25 #define TUNERALGORITHM_H 33 #include "../../thirdparty/eigen/Eigen/Dense" 34 #include "../../thirdparty/eigen/Eigen/QR" 64 const QVector<double> pitches,
65 const int referenceKey,
66 const int wolfsIntervalShift);
69 const QVector<double> intervals,
70 const QVector<double> weights,
95 {-3.9100, 17.5963, -31.1741},
99 #endif // TUNERALGORITHM_H
const double octaveWeightFactor
void tuneStatically(KeyDataVector &keys, const QVector< double > pitches, const int referenceKey, const int wolfsIntervalShift)
Tune statically in a given unequal temperament (UT)
QVector< KeyData > KeyDataVector
Data of all keys of the keyboard.
double mProgression
Actual pitch progression.
TunerAlgorithm()
Constructor of the TunerAlgorithm.
void setIntervalWeight(int halftones, double weight)
const double memoryWeight
This is the main class of the tuner module.
void setIntervalSize(int halftones, double cents)
const QVector< QVector< double > > cJustIntonation
major seventh 15/8
Eigen::MatrixXi mSelectedVariant
Previously used pitch variant.
double tuneDynamically(KeyDataVector &keyData, const QVector< double > intervals, const QVector< double > weights, bool optimizedJI)
Main Tuninig Procedure: Tune dynamically.