scope
  1. config
  2. align
  3. color
  4. thickness
  5. scale
  6. pos
  7. trigger

Renders an oscilloscope for the time domain of the audio signal.

s("sawtooth")._scope()

aliases: tscope()

parametertype
config
  • object
optional config with options:
align
  • boolean
if 1, the scope will be aligned to the first zero crossing. defaults to 1
color
  • string
line color as hex or color name. defaults to white.
thickness
  • number
line thickness. defaults to 3
scale
  • number
scales the y-axis. Defaults to 0.25
pos
  • number
y-position relative to screen height. 0 = top, 1 = bottom of screen
trigger
  • number
amplitude value that is used to align the scope. defaults to 0.