Module:Infobox MOS: Difference between revisions
Todo; forgot a lookup |
Adopt new mos functions |
||
| Line 11: | Line 11: | ||
-- TODO: | -- TODO: | ||
-- Adopt | -- Adopt new functions provided by tamnams and mos modules | ||
-- Add back xenpaper links (low priority) | -- Add back xenpaper links (low priority) | ||
| Line 158: | Line 158: | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||
local | local bright_min_in_steps = mos.bright_gen_to_et_steps(input_mos, {1,1}) | ||
local bright_max_in_steps = mos.bright_gen_to_et_steps(input_mos, {1,0}) | |||
local dark_min_in_steps = mos.dark_gen_to_et_steps(input_mos, {1,0}) | |||
local dark_max_in_steps = mos.dark_gen_to_et_steps(input_mos, {1,1}) | |||
local | local bright_min_in_cents = mos.bright_gen_to_cents(input_mos, {1,1}) | ||
local bright_max_in_cents = mos.bright_gen_to_cents(input_mos, {1,0}) | |||
local dark_min_in_cents = mos.dark_gen_to_cents(input_mos, {1,0}) | |||
local dark_max_in_cents = mos.dark_gen_to_cents(input_mos, {1,1}) | |||
local | |||
local | |||
local | |||
local section_header = "Generator size" | local section_header = "Generator size" | ||
| Line 199: | Line 191: | ||
-- Produces ranges small and large steps (currently unused) | -- Produces ranges small and large steps (currently unused) | ||
-- Section is returned as a jagged array and return value must be merged into | -- Section is returned as a jagged array and return value must be merged into | ||
-- a larger array | -- a larger array | ||
function p.step_sizes(input_mos) | function p.step_sizes(input_mos) | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||