Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
m missed a function
Ganaram inukshuk (talk | contribs)
update to new function names in module:mos
Line 115: Line 115:
period_as_string = equave_as_string
period_as_string = equave_as_string
else
else
period_as_string = mos.reduced_period_to_et_steps_as_string(input_mos, "")
period_as_string = mos.reduced_period_to_et_string(input_mos, "")
end
end
local period_in_cents = equave_in_cents / number_of_periods
local period_in_cents = equave_in_cents / number_of_periods
Line 143: Line 143:
local input_mos = input_mos or mos.new(5, 2,3)
local input_mos = input_mos or mos.new(5, 2,3)
local bright_min_in_steps = mos.bright_gen_to_et_steps_as_string(input_mos, {1, 1}, "")
local bright_min_in_steps = mos.bright_gen_to_et_string(input_mos, {1, 1}, "")
local bright_max_in_steps = mos.bright_gen_to_et_steps_as_string(input_mos, {1, 0}, "")
local bright_max_in_steps = mos.bright_gen_to_et_string(input_mos, {1, 0}, "")
local dark_min_in_steps  = mos.dark_gen_to_et_steps_as_string (input_mos, {1, 0}, "")
local dark_min_in_steps  = mos.dark_gen_to_et_string (input_mos, {1, 0}, "")
local dark_max_in_steps  = mos.dark_gen_to_et_steps_as_string (input_mos, {1, 1}, "")
local dark_max_in_steps  = mos.dark_gen_to_et_string (input_mos, {1, 1}, "")
local bright_min_in_cents = mos.bright_gen_to_cents(input_mos, {1, 1})
local bright_min_in_cents = mos.bright_gen_to_cents(input_mos, {1, 1})
Line 154: Line 154:
local section_header = "Generator size"
local section_header = "Generator size"
local et_suffix = mos.mos_to_et_suffix(input_mos)
local et_suffix = mos.et_suffix(input_mos)
local section_header = (et_suffix == "edo"  
local section_header = (et_suffix == "edo"  
and string.format('<div style=\"margin-top: 0.6em;\"><b>Generator size</b></div>')
and string.format('<div style=\"margin-top: 0.6em;\"><b>Generator size</b></div>')
Line 341: Line 341:
local ed_as_string = mos.mos_to_et_as_string(input_mos, step_ratio)
local ed_as_string = mos.mos_to_et_as_string(input_mos, step_ratio)
local gen_in_steps = mos.bright_gen_to_et_steps_as_string(input_mos, step_ratio, "")
local gen_in_steps = mos.bright_gen_to_et_string(input_mos, step_ratio, "")
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)