From 9551173590decc6d43b50e66b4c8ec8e5ffa9704 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 26 Oct 2022 12:13:32 +0100 Subject: [PATCH] fix docstring, add docstring. --- examples/levels/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/levels/__main__.py b/examples/levels/__main__.py index 7457433..62e03a8 100644 --- a/examples/levels/__main__.py +++ b/examples/levels/__main__.py @@ -11,12 +11,14 @@ LEVELTYPE = IntEnum( def on_input_mute_state_changed(data): - """The current program scene has changed.""" + """An input's mute state has changed.""" if data.input_name == DEVICE: print(f"{DEVICE} mute toggled") def on_input_volume_meters(data): + """volume level update every 50 milliseconds""" + def fget(x): return round(20 * log(x, 10), 1) if x > 0 else -200.0