Module:Infobox ET: Difference between revisions

m Document "debug mode"
CompactStar (talk | contribs)
Added major third (from 4 3/2 stacked)
Line 94: Line 94:
local fifth_error = ET.cents(et, fifth) - i._to_cents(3/2)
local fifth_error = ET.cents(et, fifth) - i._to_cents(3/2)
local dual_fifth = math.abs(fifth_error) > step_size / 3
local dual_fifth = math.abs(fifth_error) > step_size / 3


local A1 = -11 * octave + 7 * twelfth -- 2187/2048 = [-11 7>
local A1 = -11 * octave + 7 * twelfth -- 2187/2048 = [-11 7>
Line 99: Line 100:
local A1_cents = u._round(ET.cents(et, A1), 4)
local A1_cents = u._round(ET.cents(et, A1), 4)
local m2_cents = u._round(ET.cents(et, m2), 4)
local m2_cents = u._round(ET.cents(et, m2), 4)
local major_third = -(2 * octave) + 4 * twelfth


local infobox_data = {}
local infobox_data = {}
Line 146: Line 149:
})
})
end
end
table.insert(infobox_data, {
'major 3rd',
round(ET.cents(et, major_third), 4) + ""
})
local consistency = tonumber(frame.args['Consistency'])
local consistency = tonumber(frame.args['Consistency'])