typographic_scale = {6,7,8,9,10,12,14,16,18,21,24,28,32,36,42,48,55,63,73,84,96} for i,v in ipairs(typographic_scale) do typographic_scale[i] = v*4 end function higher_element(a,v) if v == a[#a] then return v else return a[array.find(a,v)+1] end end function lower_element(a,v) if v == a[1] then return v else return a[array.find(a,v)-1] end end