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})
Metadata
Release files for anthos 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| anthos-1.0.4.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| anthos-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.3 kB
Release files / anthos-1.0.4.tar.gz
| Download URL | anthos-1.0.4.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d69d8ab7f0845a78ef61afcf8517a0df2b77c9571b219e9ff1574a21c154826
|
|
BLAKE2b-256 checksum How to use checksums |
1cccf61deb9f116c4220cafc2823c1a299de60b17348dccafc8cce94e513a1d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / anthos-1.0.4-py3-none-any.whl
| Download URL | anthos-1.0.4-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb60db3c364ca022da980f617d94f9f63c130c1f41ec949b47e9aef439af5f45
|
|
BLAKE2b-256 checksum How to use checksums |
a63f16cd50f23451f0949126c6f7964b5bd7bb4df5664d67d8d54fd6f3a55b33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|