spiral
  1. options
  2. stretch
  3. size
  4. thickness
  5. cap
  6. inset
  7. playheadColor
  8. playheadLength
  9. playheadThickness
  10. padding
  11. steady
  12. activeColor
  13. inactiveColor
  14. colorizeInactive
  15. fade
  16. logSpiral

Displays a spiral visual.

note("c2 a2 eb2")
.euclid(5,8)
.s('sawtooth')
.lpenv(4).lpf(300)
._spiral({ steady: .96 })
parametertype
options
  • object
Object containing all the optional following parameters as key value pairs:
stretch
  • number
controls the rotations per cycle ratio, where 1 = 1 cycle / 360 degrees
size
  • number
the diameter of the spiral
thickness
  • number
line thickness
cap
  • string
style of line ends: butt (default), round, square
inset
  • string
number of rotations before spiral starts (default 3)
playheadColor
  • string
color of playhead, defaults to white
playheadLength
  • number
length of playhead in rotations, defaults to 0.02
playheadThickness
  • number
thickness of playheadrotations, defaults to thickness
padding
  • number
space around spiral
steady
  • number
steadyness of spiral vs playhead. 1 = spiral doesn't move, playhead does.
activeColor
  • number
color of active segment. defaults to foreground of theme
inactiveColor
  • number
color of inactive segments. defaults to gutterForeground of theme
colorizeInactive
  • boolean
wether or not to colorize inactive segments, defaults to 0
fade
  • boolean
wether or not past and future should fade out. defaults to 1
logSpiral
  • boolean
wether or not the spiral should be logarithmic. defaults to 0