30 for (
int iP = 0; iP < 12; iP++) {
31 m_Basis[i][iP] = std::sin( (7.0 / 6.0) * iP * M_PI);
37 for (
int iP = 0; iP < 12; iP++) {
38 m_Basis[i][iP] = std::cos( (7.0 / 6.0) * iP * M_PI);
46 for (
int iP = 0; iP < 12; iP++) {
47 m_Basis[i][iP] = 0.6 * std::sin( (2.0 / 3.0) * iP * M_PI);
53 for (
int iP = 0; iP < 12; iP++) {
54 m_Basis[i][iP] = 0.6 * std::cos( (2.0 / 3.0) * iP * M_PI);
62 for (
int iP = 0; iP < 12; iP++) {
63 m_Basis[i][iP] = 1.1 * std::sin( (3.0 / 2.0) * iP * M_PI);
69 for (
int iP = 0; iP < 12; iP++) {
70 m_Basis[i][iP] = 1.1 * std::cos( (3.0 / 2.0) * iP * M_PI);
82 vaRetVal.resize(6, 0.0);
84 for (
int i = 0; i < 6; i++) {
85 for (
int iP = 0; iP < 12; iP++) {
86 vaRetVal[i] +=
m_Basis[i][iP] * rVector[iP];
virtual ~TonalEstimator()
std::valarray< std::valarray< double > > m_Basis
TCSVector transform2TCS(const ChromaVector &rVector)