Soundbrick
Soundbrick is simple sound files viwer.
Usage
Example.1
from soundbrick import Soundbrick
sb = Soundbrick()
sb.add(['/your/sound/directory/sound_0100.wav',
'/your/sound/directory/sound_0101.wav',
'/your/sound/directory/sound_0102.wav',
'/your/sound/directory/sound_0103.wav',
'/your/sound/directory/sound_0104.wav',
'/your/sound/directory/sound_0105.wav',
'/your/sound/directory/sound_0106.wav',
'/your/sound/directory/sound_0107.wav',
'/your/sound/directory/sound_0108.wav',
'/your/sound/directory/sound_0109.wav',])
sb.show('./tile1.jpg')
sb.close()
Example.2
import glob
from soundbrick import Soundbrick
sb = Soundbrick(background_color="#b55233",
line_color="#982222",
helical_edge_color="#ffffff",
vartical_edge_color="#ffffff",
xsize_per_second=1.0,
aspect=0.5)
file_list = sorted(glob.glob('/your/sound/directory/suond_*.wav'))
sb.add(file_list)
sb.show('./tile2.jpg')
sb.close()
Args
Soundbrick(
is_showlabel = True, #
label_size = 15, #
label_color = "#ff5470", #
label_alpha = 1.0, #
helical_edge_color = "#232323", #
vartical_edge_color = "#ff5470", #
background_color = "#f5f5dc", #
line_color = "#078080", #
yrange = [-1,1], #
dpi = 100,
xsize_per_second = 1.0,
ysize = 1.0,
aspect = 1.0,
)
Soundbrick().add(
file_list # list of input-sound-filepath
)
Soundbrick().show(
file # output-image-filepath
)
Installation
pip install soundbrick # xxxxx
Developer Memo
python3 -m venv ./venv
source ./venv/bin/activate
# Install modules
pip install --upgrade pip
pip install numpy
pip install matplotlib
pip install soundfile
pip install opencv-python
pip install wheel
pip install twine
# test
xxx
# update to pypi
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository testpypi dist/*
Metadata
Release files for soundbrick 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| soundbrick-0.0.1.tar.gz | 1.8 kB | Without provenance | Details for soundbrick-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| soundbrick-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for soundbrick-0.0.1-py3-none-any.whl |
Total release size: 4.5 kB
Release files / soundbrick-0.0.1.tar.gz
| Download URL | soundbrick-0.0.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e846ff7289b0f24e7e042d2f02e74ef76cf56a9713771d9022b91d322d009e30
|
|
BLAKE2b-256 checksum How to use checksums |
2596dad61c73f9d85215546ca6a0dc0f20792b1cc3f1123500d17a3e5a9c544c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
|
Release files / soundbrick-0.0.1-py3-none-any.whl
| Download URL | soundbrick-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83f1b56f9397257871203bd9197130907895e7596d7484474270b521b0d00dca
|
|
BLAKE2b-256 checksum How to use checksums |
e3aad6ef0b79bf7085a5b566105d6d1a37c8bdc207b6a137b551b25046b0adbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
|
Security for soundbrick 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.