I think a 'jaunty angle' on a cylinder would mean a sort of 0-360 cosine shape for one edge. So a radius corner would follow the first 90 degrees shape of a cosine shape? (just guessing here!)
So depending on what ratio the 'jaunty angle' will be you would have:
xcosy
So for a gradient of 1, x = 1, for gradient of 0.5, x = 0.5.
(with y being the position along the curve, if it is divided up into 90 subdivisions.(or pi/2 if that's what you fancy.))
So:
start: xcos0
middle: xcos45
end: xcos90
(for each 90 degree corner).