Module:Infobox ET: Difference between revisions
The situation is different for ed8's |
Implement a cleaner and more futureproof solution to navigation arrows |
||
| Line 81: | Line 81: | ||
end | end | ||
-- navigation arrows | |||
local increment = 1 | |||
if rat.eq(et.equave, 9/4) or rat.eq(et.equave, 4) or rat.eq(et.equave, 9) then | |||
increment = 2 | |||
end | |||
local prev_one = '' | local prev_one = '' | ||
if et.size > | if et.size >= increment then | ||
prev_one = '[[' .. (et.size - increment) .. et.suffix .. '|← ' .. (et.size - increment) .. et.suffix .. ']]' | |||
end | end | ||
local next_one = '[[' .. (et.size + increment) .. et.suffix .. '|' .. (et.size + increment) .. et.suffix .. ' →]]' | |||
-- octave, twelfth, and fifth sizes | |||
local step_size = ET.cents(et, 1) | local step_size = ET.cents(et, 1) | ||
local note_12edo = '' | local note_12edo = '' | ||