Skip to main content

CircuitPython library for generating simple waveforms for audio.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

This library generates simple waveforms that can be used to generate different type of audio signals.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-waveform

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-waveform

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-waveform

Usage Example

This example generates one wavelength of a 440hz sine wave when played at 16 kilosamples per second:

from adafruit_waveform import sine
wave = sine.sine_wave(16000, 440)

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

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

Built Distribution

File details

Details for the file adafruit-circuitpython-waveform-1.3.17.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-waveform-1.3.17.tar.gz
Algorithm Hash digest
SHA256 120a954d24ecca79bae5654ec80d7493c1b2e830ef7933bb5a5373cb7fadc460
MD5 ab13a5f78c51245456b96c5aade5793d
BLAKE2b-256 22fc3d82377f8a9938e0200692f65bc69f58aa042854c0853a6bbd9f4a44146c

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_waveform-1.3.17-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_waveform-1.3.17-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8b53412379a66228f3bdf1d2ca67f3f114ab8333eee17da44a2ea6af62547b
MD5 1a4559d229e34d73601dbf1092385481
BLAKE2b-256 e0afb49145d47de084d63ff8aeb9167528f97f081eca2691251d145109e9af80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page