Skip to main content

Module config

Module config 

Source
Expand description

The slices of the cast and SFX config models the mixing stages read. Port of the relevant parts of CastConfiguration, VoiceConfig, SfxEntry and SfxConfiguration in models.py.

Numbers keep their Python type. Pydantic coerces a model field declared float to a float, but the defaults block is a plain dict, so a category default of 80 stays an int — and prints as 80, not 80.0, in the timeline’s JSON.

Structs§

CastConfig
SfxConfig
SfxEntry
One effect entry, with pydantic’s defaults applied.
Voice
VoiceConfig(...).model_dump() — what the mixers look a speaker up in.

Enums§

Filter
The filter field: str | bool | None.
Num
A JSON number with its Python type preserved.

Traits§

NullishExt 🔒
OptLe 🔒

Functions§

model_float 🔒
A float field of a pydantic model: an int in the JSON becomes a float.
opt_str 🔒
py_float_str
str(float) in Python.
validate_entry 🔒
Pydantic’s checks on one SfxEntry, as the first error it would raise.
validate_member 🔒
Pydantic’s checks on one CastMember, as the first error raised.