GithubHelp home page GithubHelp logo

tonescale's Introduction

tonescale

setup

Ubuntu 16.04 LTS

sudo apt install    \
    libasound-dev   \
    portaudio       \
    python-pyaudio  \
    python3-pyaudio

pip install tonescale

Ubuntu 18.04 LTS

sudo apt install    \
    libasound-dev   \
    portaudio19-dev \
    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.

tonescale's People

Contributors

wdbm avatar

Watchers

 avatar  avatar

Forkers

lalaeni

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.