User:Holger Stoltenberg/sandbox: Difference between revisions

No edit summary
mNo edit summary
Line 81: Line 81:
==== 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 e.g. <small><math>(386</math> ¢ <math>mod(100))</math></small>, the 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 ¢