Make waveform widgets beautifully.
Project description
Anthos
A Tkinter-based waveform visualization widget using Canvas and librosa.
A fork of ostcrom’s python-tkinter-waveform-widget, with a simpler API and customizable waveform display options.
Usage
import tkinter as tk
import anthos
# Create main Tkinter window
main_window = tk.Tk()
# Standard Tkinter Canvas options
cnf = {
"height": 100,
"width": 500,
"bg": "green"
}
# Waveform display options
wave_cnf = {
"x_scale": 1,
"y_scale": 5
}
path_to_audio = "test.mp3"
# Create waveform widget
widget = anthosWidget(
master=main_window,
path(path_to_audio)
cnf=cnf,
wave_cnf=wave_cnf
)
# Draw the waveform
widget.draw()
# The widget inherits from tkinter.Canvas, so you can use standard geometry methods
widget.place(x=10, y=10)
# Update standard canvas configuration dynamically
widget.config({"bg": "black", "width": 600})
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
anthos-1.0.4.tar.gz
(14.6 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
anthos-1.0.4-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file anthos-1.0.4.tar.gz.
File metadata
- Download URL: anthos-1.0.4.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d69d8ab7f0845a78ef61afcf8517a0df2b77c9571b219e9ff1574a21c154826
|
|
| MD5 |
7ccbffeda6e392311850e7278a8e1a3e
|
|
| BLAKE2b-256 |
1cccf61deb9f116c4220cafc2823c1a299de60b17348dccafc8cce94e513a1d0
|
File details
Details for the file anthos-1.0.4-py3-none-any.whl.
File metadata
- Download URL: anthos-1.0.4-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb60db3c364ca022da980f617d94f9f63c130c1f41ec949b47e9aef439af5f45
|
|
| MD5 |
65afa265ba15129061303afbf47ecbd2
|
|
| BLAKE2b-256 |
a63f16cd50f23451f0949126c6f7964b5bd7bb4df5664d67d8d54fd6f3a55b33
|