tonescale
setup
sudo apt install \
libasound-dev \
portaudio \
python-pyaudio \
python3-pyaudio
pip install tonescale
usage
Tonescale provides various sound utilities and capabilities for Python in Linux. It provides a Sound class that can store a sound in a NumPy array, can load the sound from a file, can save the sound to a file, and can play the sound using aplay or by streaming the sound using PyAudio. Sounds can be added, summed and repeated symbolically. Tonescale includes some sounds.
A tonescale module sound can be accessed in the following way:
sound_1 = tonescale.access_sound(name = "199935__drzhnn__04-blip")
Sounds can be repeated:
sound_1.repeat(number = 2)
Sounds can be added:
sound_3 = sound_1 + sound_2
Sounds can be summed:
sound_3 = sum([sound_1, sound_2])
Sounds can be played:
sound_1.play()
Sounds can be played in the background too:
sound_1.play(background = True)
Sounds can also be played in a stream:
sound_1.play_stream()
Sounds can be saved to files:
sound_1.save_WAVE()
Sounds can be loaded from files:
sound_1.read_WAVE(filename = "199935__drzhnn__04-blip.wav")
See example code for more details.
Tonescale also provides sound_search.py, which can search recursively for sound files of a specified minimum duration.
Metadata
Release files for tonescale 2018.2.6.1919
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tonescale-2018.2.6.1919.tar.gz | 2.9 MB | Without provenance | Details for tonescale-2018.2.6.1919.tar.gz |
Release files / tonescale-2018.2.6.1919.tar.gz
| Download URL | tonescale-2018.2.6.1919.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
548311b6dca9dc1944bb96d02ceb155fef9811e206c95f8d24092f0b5b6a56b9
|
|
BLAKE2b-256 checksum How to use checksums |
e2b84acdbc4be0f5bbe5b091fa8439cf2043c471a33c054b06ddd17d3a6457b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tonescale 2018.2.6.1919
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.