Skip to main content

Function: getBeatDistance()

getBeatDistance(beat_strength): number

Defined in: simulation/simulation.ts:1512

computes the distance the beat will push the yarn based on the strength of the beat.

Parameters​

beat_strength​

number

the strength of the beat (0-1)

Returns​

number

the distance the beat will push the yarn