Module:ET: Difference between revisions
is_highly_melodic() implemented |
m A bugfix; why_highly_melodic() implemented |
||
Line 92: | Line 92: | ||
-- determine whether the temperament is highly melodic | -- determine whether the temperament is highly melodic | ||
function p.is_highly_melodic(et) | function p.is_highly_melodic(et) | ||
return rat.is_highly_composite(et.size) | et.highly_composite = et.highly_composite or rat.is_highly_composite(et.size) | ||
et.superabundant = et.superabundant or rat.is_superabundant(et.size) | |||
return et.highly_composite or et.superabundant | |||
end | |||
-- describe why | |||
function p.why_highly_melodic(et) | |||
et.highly_composite = et.highly_composite or rat.is_highly_composite(et.size) | |||
et.superabundant = et.superabundant or rat.is_superabundant(et.size) | |||
if et.highly_composite and et.superabundant then | |||
return 'highly composite, superabundant' | |||
elseif et.highly_composite then | |||
return 'highly composite' | |||
elseif et.superabundant then | |||
return 'superabundant' | |||
else | |||
return 'no' | |||
end | |||
end | end | ||
return p | return p |