Skip to content

FrancescoCeruti/QDigitalMeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QDigitalMeter

A simple digital peak meter for use with PyQt5, PyQt6, PySide2, and PySide6.


Create a meter with default parameters, designed for audio dB values.

from qdigitalmeter import QDigitalMeter

meter = QDigitalMeter()
meter.setStyleSheet("* { background: rgb(30, 30, 30); color: rgb(90, 90, 90); }")
meter.resize(150, 400)
meter.show()

Update displayed values:

meter.plot([-42, -42])

Optionally display decay indicators:

meter.plot([-42, -42], [-21, -21])

See examples/example_01.py for a working example:

python3 examples/example_01.py

# or
QT_API=<api> python3 examples/example_01.py
# where <api> = pyqt5 || pyqt6 || pyside2 || pyside6

capture