Module:Interval edo approximation: Difference between revisions
No edit summary |
No edit summary |
||
| Line 149: | Line 149: | ||
-- Calculate the precise ratio in cents for the caption | -- Calculate the precise ratio in cents for the caption | ||
local ratio_cents = cents(ratio) | local ratio_cents = cents(ratio) | ||
table.insert(output, string.format('|+ EDO Approximations for %s (%.2f¢) | -- Include subtitle info in caption to avoid breaking sortable functionality | ||
table.insert(output, string.format('|+ EDO Approximations for %s (%.2f¢)<br/><small>\'\'Up to %dedo, Tolerance: ≤%g%%%%\'\'</small>', interval_str, ratio_cents, max_edo, tolerance)) | |||
table.insert(output, '|-') | table.insert(output, '|-') | ||
table.insert(output, '! EDO !! Step size !! Approximation ([[Cent|¢]]) !! Absolute Error ([[Cent|¢]]) !! [[Relative_interval_error|Relative Error]] ([[Relative_cent|%]])') | table.insert(output, '! EDO !! Step size !! Approximation ([[Cent|¢]]) !! Absolute Error ([[Cent|¢]]) !! [[Relative_interval_error|Relative Error]] ([[Relative_cent|%]])') | ||