Module:Lumatone mapping intro: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 7: Line 7:
function p.lum_intro(frame)
function p.lum_intro(frame)
local tuning = frame.args["edo"]
local tuning = frame.args["edo"]
local et = ET.parse(tuning) or ET.parse("12edo")
local et = ET.parse(tuning)
local debug_mode = yesno(frame.args["debug"])
local debug_mode = yesno(frame.args["debug"])
Line 18: Line 18:
local is_far_fifth = (math.abs(fifth_error) / step_size >= 0.4)
local is_far_fifth = (math.abs(fifth_error) / step_size >= 0.4)


local result = string.format("There are many conceivable ways to map [[%s]] onto the onto the [[Lumatone]] keyboard.", tuning)
local result = string.format("There are many conceivable ways to map [[%s]] onto the onto the [[Lumatone]] keyboard.", ET.as_string(et))
local rings = gcd(octave, twelfth)
local rings = gcd(octave, twelfth)