User:Holger Stoltenberg/sandbox: Difference between revisions

intonation: math and subheaders
No edit summary
Line 78: Line 78:


==== Calculate intonation ====
==== Calculate intonation ====
To calculate the signed intonation interval
To calculate the signed intonation interval...
 
*compute the ''remainder'' of the original interval’s ''value in cents'' by a modulo division e.g. <small><math>(386</math> ¢ <math>mod(100))</math></small>, the <br>intermediate result is 86 ¢
*compute the ''remainder'' of the original interval’s ''value in cents'' by a modulo division <small><math>(386</math> ¢ <math>mod(100))</math></small>, the <br>intermediate result is 86 ¢
*Test: If the intermediate result is greater than 50 ¢ then subtract 100 ¢
*Test: If the intermediate result is greater than 50 ¢ then subtract 100 ¢
*The test is true and the final result is 86 ¢ -100 ¢ = -14 ¢
*The test is true and the final result is 86 ¢ -100 ¢ = -14 ¢


Line 88: Line 87:
::::<math>
::::<math>
r_{12edo}=integer\left (\frac{r_{cents}+50c}{100.0}  \right )\cdot 100</math> <br>
r_{12edo}=integer\left (\frac{r_{cents}+50c}{100.0}  \right )\cdot 100</math> <br>
... according to Example 1:
... according to [[#example01|Example 1]]:
::::<math>
::::<math>
r_{12edo}=integer\left (\frac{386c+50c}{100.0}  \right )\cdot 100=400</math> ¢
r_{12edo}=integer\left (\frac{386c+50c}{100.0}  \right )\cdot 100=400</math> ¢