Skip to main content

Random sweep/hold tone generator with explicit-duration playback.

Project description

random_tone_generator

A small Python utility to generate randomized tone sweeps and holds in real time.

Features

  • Real-time audio output via sounddevice
  • Random sweep patterns:
    • base -> random -> base
    • base -> random -> random -> base
  • Adjustable:
    • playback speed
    • min/max frequency
    • amplitude
  • Explicit playback duration with play_for(seconds)

function calls

gen.set_speed(speed) # float, must be > 0 gen.set_max_freq(max_freq) # float, must be >= min_freq gen.set_min_freq(min_freq) # float, must be <= max_freq (if implemented) gen.set_base_freq(base_freq) # float (if implemented) gen.set_amplitude(amplitude) # float in [0.0, 1.0] (if implemented) state = gen.get_state() # returns dict of current settings gen.play_for(seconds) # play for N seconds (explicit mode)


Installation

pip install random_tone_generator

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

random_tone_generator-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

random_tone_generator-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file random_tone_generator-0.0.1.tar.gz.

File metadata

  • Download URL: random_tone_generator-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for random_tone_generator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 506b795a959b37f1091448bb3d07aa329e78e45271262a5be5dbb6e001e700ca
MD5 eb1e3b0ea9fdc4d3e432ce8872364c5c
BLAKE2b-256 007ee98a782b3b70fddac45756e4f8dbd42c4bca27e21f1ccc1e02383ae13fe9

See more details on using hashes here.

File details

Details for the file random_tone_generator-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for random_tone_generator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6285a403c707ed4b046bdd8f7b43477b13229604dd3e35a23acdc95c2410d32e
MD5 90cfd324dabc21c43ef31376feafaa9d
BLAKE2b-256 db617e056335fc3c8290943633776b793f6e897854c5e2e5a333d7e449ae1543

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