Module:Infobox MOS: Difference between revisions
Simplified equal tunings helper function |
m Added back capitalizing |
||
| Line 520: | Line 520: | ||
local gen_in_cents = mos.bright_gen_to_cents(input_mos, step_ratio) | local gen_in_cents = mos.bright_gen_to_cents(input_mos, step_ratio) | ||
local caption = string.format("[[%s]] (L:s = %d:%d)", | local step_ratio_name = tamnams.lookup_step_ratio(step_ratio) | ||
step_ratio_name = step_ratio_name:gsub("^%l", string.upper) | |||
local caption = string.format("[[%s]] (L:s = %d:%d)", step_ratio_name, step_ratio[1], step_ratio[2]) | |||
local text = string.format("[[%s | %s]] (%.1f¢)", ed_as_string, gen_in_steps, gen_in_cents) | local text = string.format("[[%s | %s]] (%.1f¢)", ed_as_string, gen_in_steps, gen_in_cents) | ||