lupy.types

lupy.types.NumChannels

Number of audio channels supported by the meter (1, 2, 3, or 5).

alias of Literal[1, 2, 3, 5]

class lupy.types.NumChannelsT

TypeVar bound to NumChannels.

alias of TypeVar(‘NumChannelsT’, bound=Literal[1, 2, 3, 5])

lupy.types.ChannelIndex

Zero-based index for an audio channel, valid for channel counts up to 5 (0 through 4).

alias of Literal[0, 1, 2, 3, 4]

class lupy.types.ChannelIndexT

TypeVar bound to ChannelIndex.

alias of TypeVar(‘ChannelIndexT’, bound=Literal[0, 1, 2, 3, 4])

class lupy.types.DType_co

alias of TypeVar(‘DType_co’, bound=dtype[Any], covariant=True)

lupy.types.AnyNdArray

A generic type for numpy ND arrays

alias of ndarray[ShapeT, DType_co]

lupy.types.Any1dArray

A generic type for numpy 1D arrays

alias of ndarray[tuple[int], DType_co]

lupy.types.Any2dArray

A generic type for numpy 2D arrays

alias of ndarray[tuple[int, int], DType_co]

lupy.types.Any3dArray

A generic type for numpy 3D arrays

alias of ndarray[tuple[int, int, int], DType_co]

lupy.types.Float1dArray

1D array of float64

alias of ndarray[tuple[int], dtype[float64]]

lupy.types.Float2dArray

2D array of float64

alias of ndarray[tuple[int, int], dtype[float64]]

lupy.types.Float3dArray

3D array of float64

alias of ndarray[tuple[int, int, int], dtype[float64]]

lupy.types.Float2dArray32

2D array of float32

alias of ndarray[tuple[int, int], dtype[float32]]

lupy.types.SosCoeff

Array representing second-order sections filter coefficients

alias of ndarray[tuple[int, Literal[6]], dtype[float64]]

lupy.types.SosZI

Array representing initial conditions for second-order sections filtering

alias of ndarray[tuple[int, int, Literal[2]], dtype[float64]]

class lupy.types.CurrentMeasurement(time: float | floating, momentary: float | floating, short_term: float | floating, integrated: float | floating, lra: float | floating, true_peak_current: ndarray[tuple[NumChannelsT], dtype[float64]], true_peak_max: float | floating)[source]

Bases: Generic[NumChannelsT]

Represents the current measurement state for a gating block

time: float | floating

The measurement time for this gating block

momentary: float | floating

The Momentary Loudness for this gating block

short_term: float | floating

The Short-Term Loudness for this gating block

integrated: float | floating

The Integrated Loudness for this gating block

lra: float | floating

The Loudness Range for this gating block

true_peak_current: ndarray[tuple[NumChannelsT], dtype[float64]]

The True Peak value for each channel for this gating block

true_peak_max: float | floating

The maximum True Peak value across all channels for this gating block