Skip to main content

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

Metadata

Release files for random-tone-generator 0.0.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 random-tone-generator 0.0.1
File Size Uploaded
random_tone_generator-0.0.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for random-tone-generator 0.0.1
File Interpreter ABI Platform
random_tone_generator-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / random_tone_generator-0.0.1.tar.gz

Download URL random_tone_generator-0.0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
506b795a959b37f1091448bb3d07aa329e78e45271262a5be5dbb6e001e700ca
BLAKE2b-256 checksum
How to use checksums
007ee98a782b3b70fddac45756e4f8dbd42c4bca27e21f1ccc1e02383ae13fe9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / random_tone_generator-0.0.1-py3-none-any.whl

Download URL random_tone_generator-0.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6285a403c707ed4b046bdd8f7b43477b13229604dd3e35a23acdc95c2410d32e
BLAKE2b-256 checksum
How to use checksums
db617e056335fc3c8290943633776b793f6e897854c5e2e5a333d7e449ae1543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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