Skip to main content

This is a wave form generator and interpreter!

Project description

Soundboard

Soundboard is a Python library for dealing with word pluralization.

Installation

Use the package manager pip to install Soundboard. For windows:

py -m pip install Soundboard

For Mac/Linux:

pip3 install Soundboard

Usage

import Soundboard

arr1 =[Soundboard.C ] #Note/Frequency
arr2 =[4   ] #Amplitude
arr3 =[100 ] #Duration
Soundboard.render(arr1,arr2,arr3,"Test1")
arr1 =[Soundboard.E ] #Note/Frequency
arr2 =[4   ] #Amplitude
arr3 =[100 ] #Duration
Soundboard.render(arr1,arr2,arr3,"Test2")
arr1 =[Soundboard.G ] #Note/Frequency
arr2 =[4   ] #Duration
arr3 =[100 ] #Amplitude
Soundboard.render(arr1,arr2,arr3,"Test3")
Soundboard.add("Test1","Test2","Test4")
Soundboard.add("Test3","Test4","Combotest")
Soundboard.make("Combotest")

Check our GitHub

Documentation

Render (Soundboard.Soundboard)

Soundboard.render(frequency,duration,amplitude,filename)

takes in an array of frequencies, and array of duration, and an array of amplitudes and a string filename

Note: The arrays must be of equal length or else the program will error.

Add (Soundboard.Soundboard)

Soundboard.add(track1,track2,output_file_name)

takes in 2 track build files and outputs a new build file that includes both tracks merged together

Note: You have to "make" the added files or else you will not be able to play the sound

Build (Soundboard.Soundboard)

Soundboard.build(arr, name)

takes in an 2 dimensional array - an sequence of note arrays containing 3 values, frequency, duration, and amplitude

Soundboard.build([[frequency,duration,amplitude], ...], name)

Note: The build will fail with an error if all 3 values are not filled in for each and every note.

Note: Build will return a file called ".sbld" containing numerical values for speaker positions

Make (Soundboard.Soundboard)

Soundboard.make(filename)

takes in a filename

Note: Make will fail if there is no "Build.txt" in the current directory.

Unmake (Soundboard.Decomposition)

Soundboard.unmake(filename)

given a .wav file, this will output the build output

Note: unmake only works on 16 bit integer wav files. Other formats are currently unsupported.

Spectrum (Soundboard.Decomposition)

Soundboard.spectrum(filename)

given a .sbld file, this will output the spectrum

Author: Ghostlypi

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

Soundboard-2.0.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Soundboard-2.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file Soundboard-2.0.3.tar.gz.

File metadata

  • Download URL: Soundboard-2.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for Soundboard-2.0.3.tar.gz
Algorithm Hash digest
SHA256 f464110a6fa858c02ab0256bfd36b545421843f4049960c5d5ee04c388863ed6
MD5 9dbf887c24e6e178bc9243e05847efad
BLAKE2b-256 f6027cdc895da79057a4b800311f8e725cd709a0e5eb6edd1dcc14d12a4f7df7

See more details on using hashes here.

File details

Details for the file Soundboard-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: Soundboard-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for Soundboard-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1eda261f340115b63a8fcc9c4ee7acef1e96f9a7d2ec6812c67f1b6d3f5941e2
MD5 4502a59317df339e946d7d0faa14cc67
BLAKE2b-256 703cc61be06fd557e78da307b5c620eaad58752a2e2057e7500de32498ba38b6

See more details on using hashes here.

Supported by

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