Module:Lumatone mapping intro: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
local fifth = -octave + twelfth -- 3/2 = [-1 1> | local fifth = -octave + twelfth -- 3/2 = [-1 1> | ||
local fifth_error = ET.cents(et, fifth) - rat.cents(rat.new(3, 2)) | local fifth_error = ET.cents(et, fifth) - rat.cents(rat.new(3, 2)) | ||
local is_far_fifth = (math.abs(fifth_error) / step_size >= 0. | local is_far_fifth = (math.abs(fifth_error) / step_size >= 0.40) | ||
local result = string.format("There are many conceivable ways to map [[%s]] onto the onto the [[Lumatone]] keyboard.", ET.as_string(et)) | local result = string.format("There are many conceivable ways to map [[%s]] onto the onto the [[Lumatone]] keyboard.", ET.as_string(et)) | ||
| Line 30: | Line 30: | ||
end | end | ||
elseif is_far_fifth == true then | elseif is_far_fifth == true then | ||
-- EDOs with inaccurate fifth ( | -- EDOs with inaccurate fifth (40% or higher relative error) | ||
result = result .. " However, as both of its fifths are about as far away from just as possible, " | result = result .. " However, as both of its fifths are about as far away from just as possible, " | ||
.. "neither the sharp or the flat versions of the [[Standard Lumatone mapping for Pythagorean]] work particularly well." | .. "neither the sharp or the flat versions of the [[Standard Lumatone mapping for Pythagorean]] work particularly well." | ||