fix tuning root
This commit is contained in:
parent
d91b338e1b
commit
be202a3b8a
1 changed files with 1 additions and 2 deletions
|
|
@ -146,8 +146,7 @@ Tunings::KeyboardMapping Tuning::Impl::mappingFromParameters(int rootKey, float
|
||||||
rootKey = std::max(0, rootKey - 12);
|
rootKey = std::max(0, rootKey - 12);
|
||||||
#endif
|
#endif
|
||||||
// fixed frequency of the root note
|
// fixed frequency of the root note
|
||||||
const double rootFrequency = tuningFrequency * std::exp2((rootKey - 69) / 12.0);
|
return Tunings::startScaleOnAndTuneNoteTo(rootKey, 69, tuningFrequency);
|
||||||
return Tunings::tuneNoteTo(rootKey, rootFrequency);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue