Skip to content
darsrcPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Trekscape

Trekscape is a terminal-first ambient audio console with a minimalist visualizer-first interface, synthesized starship engine hum, optional SFX layering, and audio-reactive visualizers.

Features

  • Real-time synthesized engine bed with live workspace controls and preset cycling.
  • Optional SFX scanner/player with per-category toggles and gain controls.
  • Visualizer modes: Warp Transit, Frequency Bars, and Waveform, with the visualizer off by default.
  • Visualizer-first hero deck with a collapsible inspector and keyboard-driven command palette.
  • Transparent-first terminal chrome with no mouse dependency or solid background wash.
  • Built-in themes (lcars, movie_blue, tng_ops) plus user theme overrides.
  • Config persistence with safe defaults and automatic write-on-first-run.

Install

Python 3.11+ is required.

Fresh clone, local install, and run:

git clone https://github.com/darsrc/trekscape.git
cd trekscape
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
trekscape

On Windows PowerShell, activate the virtual environment with:

.\.venv\Scripts\Activate.ps1

Development install:

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pytest -q

Audio backend note:

  • Linux may require PortAudio from your system package manager before sounddevice can use an output device, for example sudo apt install portaudio19-dev.
  • macOS usually works with the wheel install; if not, install PortAudio with Homebrew: brew install portaudio.

From a GitHub release artifact, wheel:

pip install trekscape-0.4.0-py3-none-any.whl

From a GitHub release artifact, sdist:

pip install trekscape-0.4.0.tar.gz

Optional media codec support:

  • Always supported: .wav
  • Optional via soundfile (pip install trekscape[sfx]): .flac, .ogg, .mp3

Run

trekscape

Alternative entrypoint:

python main.py

Terminal Requirements

  • Trekscape must be launched from an interactive terminal session.
  • Unsupported launch environments such as redirected stdin/stdout or TERM=dumb exit with a short startup error instead of a traceback.
  • Minimum terminal size: 96x28
  • When below minimum size, Trekscape shows:
    • terminal too small
    • Minimum 96x28

Config Paths

  • Main config: ~/.config/trekscape/config.toml
  • User themes: ~/.config/trekscape/themes/*.toml
  • SFX directory (default): ~/.local/share/trekscape/sfx/

Default SFX layout:

sfx/
├── beeps/
├── comms/
├── alerts/
└── ambient/

You can change SFX location from the CONFIG panel or by editing sfx.directory in config.

Visualizer Performance and GPU

  • Non-fullscreen rendering is internally bounded for large terminals.
  • Performance Mode lowers render cost further.
  • Max Render FPS is a cap; the footer shows live delivered FPS, effective target FPS, and render cost.
  • Warp Transit has Star Count (0 = AUTO) to cap star particles.
  • GPU Accel defaults to enabled (visualizer.gpu_acceleration = true) with automatic CPU fallback when unavailable.

Controls

  • 1 2 3 4 5: focus ENGINE/SFX/MIX/VIZ/SYSTEM
  • E S D V C: alternate workspace shortcuts
  • Tab/Shift+Tab or Down/Up: move focused control
  • PgUp/PgDn: jump between workspace sections
  • Home/End: first/last control in workspace
  • Left/Right: adjust focused value
  • Enter: activate the focused toggle or action
  • I: show/hide the inspector rail
  • /: open the command palette
  • ?, H, or F1: help overlay
  • F: toggle fullscreen hero deck
  • M: mute
  • P: cycle engine preset
  • Space: toggle impulse mode
  • W: warp surge
  • Ctrl+S / Ctrl+L: save/load config
  • Q: quit

Development

Run tests:

pytest -q

Build installable release artifacts from the current checkout:

rm -rf dist/
python -m build
python -m twine check dist/*

Artifacts are written to dist/. The wheel can be installed with pip install dist/trekscape-*.whl; the source distribution can be installed with pip install dist/trekscape-*.tar.gz.

Attribution

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages