spectrum
  1. config
  2. thickness
  3. speed
  4. min
  5. max

Renders a spectrum analyzer for the incoming audio signal.

n("<0 4 <2 3> 1>*3")
.off(1/8, add(n(5)))
.off(1/5, add(n(7)))
.scale("d3:minor:pentatonic")
.s('sine')
.dec(.3).room(.5)
._spectrum()
parametertype
config
  • object
optional config with options:
thickness
  • integer
line thickness in px (default 3)
speed
  • integer
scroll speed (default 1)
min
  • integer
min db (default -80)
max
  • integer
max db (default 0)