Skip to main content

Audio player/recorder software for legacy computers as tape recorder replacement

Project description

Supertape

An audio player/recorder software working with legacy computers as a tape recorder replacement. Supertape allows you to load, save, and play audio cassette tape data for vintage computers through modern audio interfaces.

Features

  • Audio Interface Integration: Real-time audio input/output through modern sound cards
  • File Format Support: Handle BASIC source files (.bas) and assembly source files (.asm)
  • Audio Processing: Convert between audio signals and digital tape data
  • Interactive Shell: Enhanced command-line interface with rich UI features
  • Tape Database: Persistent storage of tape files using YAML format
  • Image Conversion: Convert images to BASIC programs for display
  • Audio Monitoring: Real-time audio level monitoring and device selection

Installation

Requirements

  • Python 3.11+
  • Audio interface (microphone/line input and speaker/line output)

Dependencies

Install using Poetry (recommended):

poetry install

Or install using pip after building with Poetry:

poetry build
pip install dist/supertape-*.whl

Poetry Setup (Recommended)

# Install Poetry if not already installed
curl -sSL https://install.python-poetry.org | python3 -

# Install dependencies
poetry install

Usage

Basic Commands

Run commands using Poetry:

poetry run supertape [command] [options]

Available Commands

Audio Operations

Listen to audio input or file:

poetry run supertape listen [--device N] [--dump] [--list] [file.wav]
  • --device N: Select audio device by index
  • --dump: Display raw byte data
  • --list: Show BASIC program listing
  • file.wav: Process audio file instead of live input

Play files to audio output:

poetry run supertape play [--device N] file.bas
poetry run supertape play [--device N] file.asm

Converts BASIC or assembly source files to audio signals.

Interactive Tools

Interactive shell:

poetry run supertape shell [--device N] [database_name]

List audio devices:

poetry run supertape devices

Show help:

poetry run supertape

File Operations

Image to BASIC conversion:

poetry run supertape image_to_basic input.png output.bas

Preprocess BASIC files:

poetry run supertape preprocess input.bas output.bas

Example Workflows

Recording from vintage computer:

# List available audio devices
poetry run supertape devices

# Listen and save programs from audio input
poetry run supertape listen --device 1 --list

# Use interactive shell for managing recordings
poetry run supertape shell my_tapes

Playing programs to vintage computer:

# Convert and play a BASIC program
poetry run supertape play --device 0 basic/duke.bas

# Convert and play an assembly program
poetry run supertape play --device 0 test/programs/test.asm

Testing

Run the test suite:

poetry run pytest test/

Run specific test modules:

poetry run pytest test/test_basic.py
poetry run pytest test/test_assembly.py

Compatibility

Currently Supported

Matra Alice

Supertape fully supports the Matra Alice computer range:

  • Alice 4k (original Alice)
  • Alice 32
  • Alice 90

Tandy MC-10

The Matra Alice 4k being a clone of the Tandy MC-10, both systems share the same tape formats and are fully compatible with Supertape.

File Format Support

  • BASIC Programs: .bas source files with preprocessing and minification
  • Assembly Programs: .asm source files
  • Audio Files: .wav files for playback and analysis
  • Tape Data: Native tape file format with persistent database storage

Future Plans

This application is planning to support additional vintage computers with audio tape interfaces:

  • Commodore 64
  • Amstrad CPC
  • Sinclair ZX Spectrum
  • TRS-80
  • Apple II

Architecture

Supertape uses a modular architecture with audio processing pipelines:

  • Audio Layer: Real-time audio I/O with device abstraction
  • Signal Processing: Modulation/demodulation for tape data encoding
  • File Processing: BASIC/assembly compilation and tape file management
  • User Interfaces: Console commands and interactive shell
  • Storage: YAML-based persistent tape file repository

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with appropriate tests
  4. Run the test suite: poetry run pytest test/
  5. Submit a pull request

License

See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supertape-1.0.0.dev3.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supertape-1.0.0.dev3-py3-none-any.whl (56.8 kB view details)

Uploaded Python 3

File details

Details for the file supertape-1.0.0.dev3.tar.gz.

File metadata

  • Download URL: supertape-1.0.0.dev3.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for supertape-1.0.0.dev3.tar.gz
Algorithm Hash digest
SHA256 6234f19a4cd1214af7110d0f37e3bbe9dbdac15174067d55bb7eb1947946c749
MD5 bb014d8951b59e5d6e7ec18df3046d1c
BLAKE2b-256 1c05570e262e75b07c9858ec9cc4a7b5061101a6aa493216d329e8f607478602

See more details on using hashes here.

File details

Details for the file supertape-1.0.0.dev3-py3-none-any.whl.

File metadata

  • Download URL: supertape-1.0.0.dev3-py3-none-any.whl
  • Upload date:
  • Size: 56.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for supertape-1.0.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 bba0d1b667696e45c73ae9b961a1f6a991c9b6772c687e9850d3b20c2a625497
MD5 cae140cddf5f5c8e083e37aabf7998c8
BLAKE2b-256 21438ae3b40936dad9bc2cb5289fd522870abd4b6bc01faa3dfe5cd739b80234

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page