Direct approximation: Difference between revisions

Xenwolf (talk | contribs)
corrected, formula and some examples added
Xenwolf (talk | contribs)
link rounding
Line 1: Line 1:
A '''patent interval''' of a (mostly just) interval is the number of EDO steps of the "best" mapping of an interval in a respective EDO. It's calculated by rounding the product of [[Wikipedia: binary logarithm| binary logarithm]] (''log2'') of the interval ratio (''r'') and the EDO number (''nEdo'').  
A '''patent interval''' of a (mostly just) interval is the number of EDO steps of the "best" mapping of an interval in a respective EDO. It's calculated by [[rounding]] the product of [[Wikipedia: binary logarithm| binary logarithm]] (''log2'') of the interval ratio (''r'') and the EDO number (''nEdo'').  


  round(log2(r)*nEdo)
  round(log2(r)*nEdo)