Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Aug 28, 2017
Aug 28, 2017
Aug 28, 2017

README.md

pysine

travis status code coverage PySine python versions on PyPI PySine version on PyPI License

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.

Pre-installation (Linux) hints

conda uninstall PortAudio
sudo apt-get install portaudio19-dev

Installation

Either

pip install pysine

or

cd DESIRED_SOURCE_CODE_DIRECTORY
git clone https://www.github.com/lneuhaus/pysine
cd pysine
python setup.py install

Quick start / usage example:

From the command line:

python -m pysine 880.0 3

The sound of a 880-Hz sine wave should be heard for a duration of 3 seconds.

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_SOURCE_CODE_DIRECTORY
nosetests

If there are errors, please report the console output as an issue (see the section “Issues” below for detailed explanations) with as much detail on your test environment (operating system, hardware specifics, ...) as possible.

License

Please read our license file LICENSE for more information.

About

Allows to play single tones on the PyAudio sound output in real time.

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.