Module:MOS intervals: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Corrected a module name
R-4981 (talk | contribs)
No edit summary
Line 85: Line 85:
for i = 1, #step_ratios do
for i = 1, #step_ratios do
local step_ratio = step_ratios[i]
local step_ratio = step_ratios[i]
local he_dark = mos.interval_to_cents(current_dark_interval, input_mos, step_ratio)
local he_dark = interval.harmonic_entropy(mos.interval_to_cents(current_dark_interval, input_mos, step_ratio))
local he_bright = mos.interval_to_cents(current_bright_interval, input_mos, step_ratio)
local he_bright = interval.harmonic_entropy(mos.interval_to_cents(current_bright_interval, input_mos, step_ratio))
he_dark_average = he_dark_average + he_dark / #step_ratios
he_dark_average = he_dark_average + he_dark / #step_ratios
he_bright_average = he_bright_average + he_bright / #step_ratios
he_bright_average = he_bright_average + he_bright / #step_ratios