Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

scope-tui

> DevOps
Open source

oscilloscope/vectorscope/spectroscope for your terminal

682 stars0 likes2 views
WebsiteGitHub

About

oscilloscope/vectorscope/spectroscope for your terminal

scope-tui

A simple oscilloscope/vectorscope/spectroscope for your terminal

See it in action here with Planets (oscilloscope music by Jerobeam Fenderson)

Why

I really love cava. It provides a crude but pleasant frequency plot for your music: just the bare minimum to see leads solos and basslines. I wanted to also be able to see waveforms, but to my knowledge nothing is available. There is some soundcard oscilloscope software available, but the graphical GUI is usually dated and breaks the magic. I thus decided to solve this very critical issue with my own hands! And over a night of tinkering with pulseaudio (via libpulse-simple-binding) and some TUI graphics (via tui-rs), the first version of scope-tui was developed, with very minimal settings given from command line, but a bonus vectorscope mode baked in.

Installation

Binaries

Pre-build binaries for windows (x64), linux (gnu-64) and macos (arm64, unsigned) are available under the releases tab

From source

[!TIP] If you don't have the rust toolchain already installed, get it with rustup

Once you have rustc and cargo, just use cargo install:

bash
# either stable releases from crates.io
$ cargo install scope-tui

# or dev builds from my source repository
$ CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install --git https://git.alemi.dev/scope-tui.git

(note that my git server doesn't support smart http clones, setting fetch-with-cli allows dumb http clones)

The resulting binary will be under $HOME./cargo/bin. Either add such folder to your $PATH or copy the resulting binary somewhere in your $PATH.

Sources

The audio source is included by default, it works across platforms (windows, macos, linux) and uses the default sound system available. Note that being able to listen your computer audio needs your sound system to have a loopback device (for example, macos doesn't! look into BlackHole)

A very crude file source is also included by default, which can be a named pipe. While this allows connecting scope-tui to a lot of things, it's not super convenient, and more specialized sources should be used when available.

Optionally, on Linux the PulseAudio source is available, and directly connects to PulseAudio.

Enable sources by passing the respective feature flags while compiling: --features=pulseaudio,.... Disable default features with --no-default-features.

  • cpal : generic cross-platform audio implementation, backed by cpal (enabled by default)
  • file : simple raw-file implementation, just consuming a file source (enabled by default)
  • pulseaudio : pulseaudio implementation with LibPulse Simple bindings

Usage

…

The audio buffer size directly impacts resource usage, latency and refresh rate and its limits are given by the audio refresh rate. Larger buffers are slower but less resource intensive. A good starting value might be 2048 at 48kHz, which should guarantee at least 20 frames per second. Increasing sample rate and decreasing buffer size will allow scope-tui to refresh the screen faster.

To change audio buffer size or sample rate, scope-tui must be restarted, as it needs to re-initialize the audio device. Because of this, such options are only available from the command line, and not during usage.

Controls

  • Use q or CTRL+C to exit
  • Use s to toggle scatter mode
  • Use h to toggle interface
  • Use r to toggle reference lines
  • Use `` to pause and resume display
  • Use and to increase or decrease X range
  • Use and to increase or decrease Y range
  • Use `` to revert view settings to defaults
  • Use `` to switch between modes:
    • Oscilloscope:
      • Use t to toggle triggered mode
      • Use e to switch edge-triggering mode (rise/falling)
      • Use p to toggle peaks display
      • Use and to increase or decrease trigger threshold
      • Use -/_ and =/+ to increase or decrease trigger debouncing
    • Spectroscope:
      • Use and to increase or decrease averaging count
      • Use l to toggle logarithmic view (default ON)
      • Use w to toggle Hann Window (a bit of smoothing)
    • Vectorscope:
  • Combine increment/decrement commands with `` to increase or decrease by x10
  • Combine increment/decrement commands with `` to increase or decrease by x5
  • Combine increment/decrement commands with `` to increase or decrease by x 1/5

About precision

While "scatter" plot mode is as precise as the samples are and the terminal lets us be, "line" plot mode simply draws a straight line across points, meaning high frequencies don't get properly represented.

Latency is kept to a minimum thanks to small buffer and block sizes.

Sample rate and channel count can be freely specified but will ultimately be limited by source's actual sample rate / channel count.

Decrease/increase terminal font size to increase/decrease scope resolution.

Development

[!IMPORTANT] Any help is appreciated, feel free to contact me if you want to contribuite, either via issues/PRs or with any of my contacts

Some features I plan to work on and would like to add:

  • Oscilloscope
  • Vectorscope
  • Linux audio source
  • Simple controls
  • Simple triggering
  • Multiple channels
  • Spectroscope
  • File source
  • Mac audio sources
  • Windows audio sources
  • Improve file audio source
  • Network sources
  • GUI frontend
  • Serial sources
  • USB sources
  • SDR sources

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustaudioclioscilloscoperust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理