popsynth.utils.meta module

class popsynth.utils.meta.Parameter(default: Optional[float] = None, vmin: Optional[float] = None, vmax: Optional[float] = None, free: bool = True, is_normalization: bool = False)[source]

Bases: object

__init__(default: Optional[float] = None, vmin: Optional[float] = None, vmax: Optional[float] = None, free: bool = True, is_normalization: bool = False)[source]

Parameter base class.

Parameters
  • default (Optional[float]) – Default parameter value

  • vmin (Optional[float]) – Minimum parameter value

  • vmax (Optional[float]) – Maximum parameter value

  • free – If True, parameter is free

property default: Optional[float]
property is_normalization: bool
property free

‘p.free = True’ or ‘p.free = False’.

Type

Gets or sets whether the parameter is free or not. Use booleans, like

property fix

‘p.fix = True’ or ‘p.fix = False’.

Type

Gets or sets whether the parameter is fixed or not. Use booleans, like

class popsynth.utils.meta.ParameterMeta(name, bases, attrs, **kwargs)[source]

Bases: type