Function: smoothPick()
smoothPick(
pick,stretch,theta_max,spacing):YarnVertex[]
Defined in: simulation/simulation.ts:1809
TODO decide if we need to compute a global max first. This only compares pairwise. scans through all the vertexes of a pick from left ot right and adjusts the angle between vertexes such that the yarn can only travel so far between the highest vertex this function accounts for the fact that the beat will only push the yarn so far, it cannot keep pushing after a certain point. Therefefore, smooth yarns pulls up any vertexes that are too far below their highest neighbor
Parameters
pick
stretch
number
theta_max
number
spacing
number
Returns
the pick with adjusted y values