# `spectrum`

```strand
element spectrum(AudioDevice -> source): node
```

An audio spectrum: `spectrum audio.sink { bars: 48; style: mirror }`.
It stops while the audio is silent.

It takes no children.

Also every prop and event of [`node`](/reference/elements/node.html.md).

| Prop | Type | |
| --- | --- | --- |
| `bars` | `int` | How many bars. |
| `smooth` | `float` | Smoothing, 0 to 1. |
| `style` | `SpectrumStyle` | `bars`, `mirror`, `wave` or `line`. |
