Skip to main content

terminal-trip

A retro 90s/2000s music visualizer that runs at 60 FPS right inside your terminal with 2×2 supersampling anti-aliasing (SSAA) and 24-bit ANSI half-blocks—inspired by Winamp's Geiss / MilkDrop, Windows Media Player's Bars and Waves / Ambience, Chladni cymatic reaction-diffusion, 80s/90s Synthwave 3D horizons, 3D harmonic attractors, and demoscene wormholes, plasmas, and Julia fractals.

Looking for the under-the-hood DSP formulas, feedback warp math, lookup-table equations, and ANSI rendering architecture? See ARCHITECTURE.md.


1. Download & Run

Option A: Zero-Install Runner (uvx / pipx)

Once published to PyPI, you can launch terminal-trip immediately without cloning or managing a virtual environment:

# Run instantly in an isolated ephemeral environment
uvx terminal-trip
# or
pipx run terminal-trip

# Or install globally as a CLI command
uv tool install terminal-trip
# or
pipx install terminal-trip

(You can also run directly from GitHub at any time via uvx --from git+https://github.com/vhoudoverdov/terminal-trip.git terminal-trip or pipx run --spec git+https://github.com/vhoudoverdov/terminal-trip.git terminal-trip.)

Option B: Clone & Install (pip / venv)

Clone the repository and install it into a local virtual environment:

git clone https://github.com/vhoudoverdov/terminal-trip.git
cd terminal-trip

# Create a virtual environment and install
python -m venv .venv
.\.venv\Scripts\pip install .

# Launch!
.\.venv\Scripts\terminal-trip

(On macOS / Linux, replace .\.venv\Scripts\ with ./.venv/bin/.)

Option C: Strict Hash-Verified Install

If you want cryptographic SHA-256 verification of every downloaded wheel:

python -m venv .venv
.\.venv\Scripts\pip install --require-hashes -r requirements.txt
.\.venv\Scripts\python main.py

2. Common Launch Modes

# React to whatever is playing on your computer (Spotify, YouTube, etc. via Windows WASAPI loopback)
python main.py

# Play and visualize an audio file (.wav, .mp3, .flac, .ogg)
python main.py --file path/to/song.mp3

# Run the built-in 125 BPM acid-techno synth and auto-cycle presets + palettes
python main.py --synth --auto

# Start on a specific preset (1-8) and color palette (1-6)
python main.py --preset 5 --palette 2

Tip: Use Windows Terminal (or any modern true-color terminal). Shrinking your terminal font size (Ctrl + -) increases the pixel resolution of the canvas!


3. Controls & Cycling Patterns / Colors

While terminal-trip is running, use your keyboard to switch visual patterns, cycle color palettes, toggle 2×2 supersampling, change audio inputs, or take screenshots:

Key Action Description
1 – 8 Select Visual Preset Jump directly to Preset 1–8 with a smooth crossfade
← / → Previous / Next Preset Cycle backward or forward through all 8 visual patterns
Space Toggle Auto-Cycle Automatically crossfade to a new preset and palette every ~20 seconds on a beat
P Cycle Color Palette Smoothly morph to the next 256-color palette (6 built-in palettes)
A Switch Audio Source Cycle between System Loopback $\rightarrow$ Demo Synth $\rightarrow$ Audio File
+ / - Audio Sensitivity Boost or attenuate visual reactivity (0.25x to 4.0x gain)
V Toggle 2×2 Supersampling Toggle 2×2 sub-pixel Supersampling Anti-Aliasing ([2xAA] in HUD)
D Color Detail Level Cycle 256 $\rightarrow$ 128 $\rightarrow$ 64 color levels (lower = fewer ANSI codes for slower terminals)
H Toggle Bottom HUD Show or hide the status bar (active preset, palette, FPS, live Bass/Mid/Treble VU meter)
S Save PNG Screenshot Save the current frame as a crisp 4× upscaled PNG (terminal-trip-YYYYMMDD-HHMMSS.png)
? Toggle Help Overlay Show or hide the on-screen hotkey cheat sheet
Q / Esc Quit Cleanly restore the terminal screen and exit

4. Built-in Visual Presets & Palettes

Visual Presets (1–8 or ←/→)

  1. [1] Geiss Vortex: Polar feedback warp (zoom + swirl + petal modulation) with isotropic 9-point bloom diffusion, smooth shape morphing across harmonic rings, ribbons, and Lissajous waves, and sub-pixel anti-aliased beat sparks.
  2. [2] LUT Wormhole: Demoscene 1/r tunnel with continuous sub-pixel Lissajous camera glide, $N$-fold kaleidoscope symmetry, distance-attenuated XOR/plasma wall textures, and smooth bell-curve audio spectrum rings.
  3. [3] Bars & Waves: Tribute to Windows Media Player—48 logarithmic spectrum bars with sub-pixel anti-aliased crests, specular rim shading, gravity peak-hold caps, rising diffused heat trails, and a continuous CRT phosphor Signed Distance Field (SDF) oscilloscope beam.
  4. [4] Plasma & Fire: Four-wave sine interference plasma with specular contour crests combined with a 9-point turbulent wind-curled fire buffer and flame-edge gradient relief (|∇F|).
  5. [5] Cymatic Lab: Crossover with terminal-soup—a 9-point isotropic Gray-Scott Reaction-Diffusion field coupled to Chladni standing-wave acoustic nodal plates ($\cos(n\pi x)\cos(m\pi y) - \cos(m\pi x)\cos(n\pi y)$) with membrane-relief shading.
  6. [6] SynthHorizon: Retro 80s/90s outrun 3D perspective-projected canyon grid with an audio-reactive spectrum mountain ridge, scanline-segmented synthwave sun, and twinkling treble starfield.
  7. [7] 3D Attractor: Rotating 3D volumetric $(p, q)$ harmonic torus-knot and strange-attractor phase ribbon modulated by the live waveform, projected with perspective depth-cue shading and swirling motion-blur trails.
  8. [8] Julia Fractal: Real-time 60 FPS audio-reactive Julia set ($z_{n+1} = z_n^2 + c(t)$) orbiting the Mandelbrot cardioid perimeter with smooth fractional escape-potential coloring, Pickover orbital-trap interior glow, and beat-triggered kaleidoscope folding.

Color Palettes (P)

  1. Geiss Fire (Indigo $\rightarrow$ Magenta $\rightarrow$ Electric Orange $\rightarrow$ White-Hot Yellow)
  2. WMP Cobalt (Midnight Blue $\rightarrow$ Electric Cyan $\rightarrow$ Violet $\rightarrow$ Hot Pink)
  3. Acid Matrix (Deep Emerald $\rightarrow$ Neon Lime $\rightarrow$ Cyan)
  4. Neon Sunset (Crimson $\rightarrow$ Tangerine $\rightarrow$ Gold $\rightarrow$ Deep Violet)
  5. Thermal Cosine (Continuous Inigo Quilez periodic cosine rainbow)
  6. Infrared (Dark Red $\rightarrow$ Lava Orange $\rightarrow$ Incandescent White)

5. Command-Line Options & Unit Tests

Flag Default Description
--version None Print the installed terminal-trip version and exit
--check-update Off Check GitHub Releases/Tags for a newer version and exit
--update Off Self-update terminal-trip (git pull --ff-only or pip install --upgrade) and exit
--no-update-check Off Disable the 24h-cached background startup update check
--file PATH None Audio file to play and visualize (.wav, .mp3, .flac, .ogg)
--synth Off Start immediately with the built-in procedural 125 BPM demo synth
--preset {1..8} 1 Starting visual preset
--palette {1..6} 1 Starting 256-color palette
--auto Off Enable automatic preset & palette cycling on startup
--fps FPS 60.0 Target frame rate (1–240)
--detail {0,1,2} 0 Bit-shift quantization (0 = 256 levels, 1 = 128 levels, 2 = 64 levels)
--no-ssaa Off Start with 2×2 supersampling anti-aliasing disabled (1:1 pixel grid)
--no-hud Off Hide the bottom HUD bar on startup
--bench N 0 Headless benchmark mode: render N frames per preset and print timing stats
--size COLSxROWS 120x40 Canvas size in terminal cells for --bench mode
--snapshot DIR None Save one PNG snapshot per preset into DIR during --bench

Running the Unit Test Suite

python -m unittest discover -s tests -v

6. Continuous Integration & Automated Releases

  • Cross-Platform CI (.github/workflows/ci.yml): Every push and pull request runs the unit test suite (tests/test_terminal_trip.py), CLI entry-point verification (terminal-trip --version), a headless 8-preset benchmark (--bench 30), and distribution wheel builds across Windows, macOS, and Ubuntu Linux (Python 3.10–3.13).
  • Automated Tag Releases & PyPI Publishing (.github/workflows/release.yml): Pushing a semantic version tag (v*.*.*, e.g., git tag -a v0.2.2 -m "Release v0.2.2" && git push origin v0.2.2) automatically:
    1. Verifies that the git tag matches pyproject.toml and updater.__version__.
    2. Runs the unit test suite and builds the .whl and .tar.gz distributions.
    3. Creates a GitHub Release with auto-generated release notes and attached build artifacts (which terminal-trip --check-update and terminal-trip --update consume automatically).
    4. Publishes the package to PyPI via Trusted Publishing (OIDC) so uvx terminal-trip and pipx run terminal-trip always serve the latest release.

Metadata

Release files for terminal-trip 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminal-trip 0.2.1
File Size Uploaded Provenance Actions
terminal_trip-0.2.1.tar.gz 42.2 kB With provenance Details for terminal_trip-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terminal-trip 0.2.1
File Interpreter ABI Platform Actions
terminal_trip-0.2.1-py3-none-any.whl Python 3 none any Details for terminal_trip-0.2.1-py3-none-any.whl

Total release size: 81.1 kB

Release files / terminal_trip-0.2.1.tar.gz

Download URL terminal_trip-0.2.1.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ddb4812901eef4460830795cc555c64d3eb512291bcbd45b8f0848a452a814bc
BLAKE2b-256 checksum
How to use checksums
39fd739f0d31ad946bf3603d7f7ec30fbf63da8560fbcf93b58b7233de774c1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / terminal_trip-0.2.1-py3-none-any.whl

Download URL terminal_trip-0.2.1-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbd9ceb64c67aa1e085c7eb101f5a6516e3ed5065b23c7d36cb66633d6fa1c65
BLAKE2b-256 checksum
How to use checksums
0dc2de8127a0b42957424c3b4392c9f6d3b3b8fd823cbbeeaf64d5c0e82671db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for terminal-trip 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for terminal_trip-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page