Allows to play single tones on the PyAudio sound output in real time
Project description
PySine allows to play single tones on the PyAudio sound output in real time.
This is always useful when no text output is available, for example for debugging multi-thread programs or calls to object destructors by Python’s garbage collector.
Installation
Either
pip install pysine
or
cd DESIRED_SOUCE_CODE_DIRECTORY git clone https://www.github.com/lneuhaus/pysine python setup.py develop
Quick start / usage example:
>From the command line:
python -m pysine frequency duration
A sine sound with the desired properties should be heard.
Within a python code block:
from pysine import sine sine(frequency=440.0, duration=1.0) # plays a 1s sine wave at 440 Hz
Issues
Please report all problems or wishes as new issues on this page, so we can fix it and improve the future user experience.
Unit test
Use nosetests for unit tests:
cd package_code_directory nosetests
All tests should take about 3 minutes and finish without failures or errors. If there are errors, please report the console output as an issue (see the section “Issues” below for detailed explanations).
License
Please read our license file LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pysine-0.9.2.tar.gz
.
File metadata
- Download URL: pysine-0.9.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574853e257d05482d2396422f28a4723903d35d195df09d0e400d7cd6c6fb23f |
|
MD5 | 5c875934c0cfcf6f00ed6df0e377729d |
|
BLAKE2b-256 | 92b50c071ddc6fa982f58aa4e3167b423a29cd27e99d992bf2c17c33e83682b5 |
File details
Details for the file pysine-0.9.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pysine-0.9.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec0264bcc8acdf6e95f08dd2fbdc2c2fe8af263b0e4983f121bd677eb61f536 |
|
MD5 | bc6cbaa161bb57a65267423e3c5615f2 |
|
BLAKE2b-256 | c40132bc126eef61060eb2cf6f7c6247a376d1bd5f2cb986f90df0c98ee01544 |
File details
Details for the file pysine-0.9.2-py2.7.egg
.
File metadata
- Download URL: pysine-0.9.2-py2.7.egg
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 990cecf8f5fcf45a1b22c73989902988f314ea97a1ebe68febfc9e7f9d7d38a0 |
|
MD5 | a0eb79ee2b9020e72a75ecc4020067f7 |
|
BLAKE2b-256 | 680e3f67d9584eff7e15aa525717fb0edb2c1c324f65da6ebf0fb4b307eeba6d |