A simple sound file viewer like a brickwork
Project description
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/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
soundbrick-0.0.1.tar.gz
(1.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file soundbrick-0.0.1.tar.gz.
File metadata
- Download URL: soundbrick-0.0.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e846ff7289b0f24e7e042d2f02e74ef76cf56a9713771d9022b91d322d009e30
|
|
| MD5 |
413701b5baf4605153beaf4a64f42a4c
|
|
| BLAKE2b-256 |
2596dad61c73f9d85215546ca6a0dc0f20792b1cc3f1123500d17a3e5a9c544c
|
File details
Details for the file soundbrick-0.0.1-py3-none-any.whl.
File metadata
- Download URL: soundbrick-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83f1b56f9397257871203bd9197130907895e7596d7484474270b521b0d00dca
|
|
| MD5 |
5a0d6e35ac31e964d901ed049c78a3dd
|
|
| BLAKE2b-256 |
e3aad6ef0b79bf7085a5b566105d6d1a37c8bdc207b6a137b551b25046b0adbf
|