User:Fastaro/Generalized Pythagorean tuning: Difference between revisions
No edit summary |
|||
| Line 11: | Line 11: | ||
== Derivation of 'n' == | == Derivation of 'n' == | ||
In generalized Pythagorean tuning, the goal is to find values of 'n' that keep the ratio \ | In generalized Pythagorean tuning, the goal is to find values of 'n' that keep the ratio \[ \frac{p^x}{q^n} \] within an octave. This is achieved by ensuring that the ratio does not exceed 2 (the frequency doubling that marks the octave). When the ratio \[ \frac{3^x}{2^n} \] is greater than 2, we add 1 to 'n' to bring the ratio back within the octave range. To avoid using an 'if' statement and make the function linear, we derive 'n' as follows: | ||
1. Start with the inequality that keeps the ratio within an octave: | 1. Start with the inequality that keeps the ratio within an octave: | ||