meters

class Meters(server)

Bases: supriya.system.SupriyaObject

Server meters.

>>> import json, supriya, time
>>> server = supriya.Server().boot(
...     input_bus_channel_count=2,
...     output_bus_channel_count=2,
... )
>>> meters = server.meters.allocate()
>>> time.sleep(1)
>>> print(json.dumps(meters.to_dict(), indent=4))
{
    "server_meters": {
        "input_meter_levels": [
            {
                "peak": 0.0014840615913271904,
                "rms": 0.0003622023214120418
            },
            {
                "peak": 0.0,
                "rms": 0.0
            }
        ],
        "output_meter_levels": [
            {
                "peak": 0.0,
                "rms": 0.0
            },
            {
                "peak": 0.0,
                "rms": 0.0
            }
        ]
    }
}
>>> meters.free()
allocate()
free()
property input_count
property input_meter_command
property input_meter_synthdef
property is_allocated
static make_meter_synthdef(channel_count=1, command_name='/reply', initial_bus=0)
notify(topic, event)
property output_count
property output_meter_command
property output_meter_synthdef
property server
to_dict()