Esacode

Docs / Blocks / Visualizers

Waveform

Long signals (audio, sensors, logs of millions of samples) with zoom, scroll, a cursor and playback.

A view in the browser (JavaScript) Visualizers Version 1.0 Code you can open and adapt

How it works

Connect WAV files, CSV or JSON of samples, or live telemetry. Items of a stream can carry chunks of samples (ctx.telemetry("mic", {"samples": [...], "rate": 16000})) or single values (one sample per item). Scroll the wheel to zoom where the pointer is, drag to move, drag on the overview strip to jump; Follow keeps the newest samples in view while a run goes on. Play listens to what is shown (audio rates).

Inputs

InputTakesWhat it is
Signal
data
Stream or Table or Files
wav, csv, json
WAV, CSV columns, JSON {rate, samples} or live chunks of samples Takes several connections.

Settings

SettingDefaultWhat it does
Samples per second
rate
0 For CSV and streams without a rate; 0 = from the time column or the stream's timestamps
From 0
Signals
fields
empty Comma-separated columns or fields; empty = every one
Stream channel
channel
empty
Layout
lanes
one lane each
One of: one lane each, overlaid
Keep the last (seconds) of a live stream
keep
0 0 = everything received
From 0

Where it runs

In the browser, on the flow's View page and in the run's results, in a sandbox without network access. It needs no worker.

More in Visualizers