enums

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph cluster_builtins { graph [label=builtins]; node [color=1]; "builtins.int" [URL="https://docs.python.org/3.6/library/functions.html#int", label=int, target=_top]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; "builtins.object" -> "builtins.int"; } subgraph cluster_enum { graph [label=enum]; node [color=2]; "enum.Enum" [URL="https://docs.python.org/3.6/library/enum.html#enum.Enum", label=Enum, target=_top]; "enum.IntEnum" [URL="https://docs.python.org/3.6/library/enum.html#enum.IntEnum", label="Int\nEnum", target=_top]; "enum.Enum" -> "enum.IntEnum"; } subgraph "cluster_supriya.enums" { graph [label="supriya.enums"]; node [color=3]; "supriya.enums.AddAction" [URL="../api/supriya/enums.html#supriya.enums.AddAction", color=black, fontcolor=white, label="Add\nAction", target=_top]; "supriya.enums.CalculationRate" [URL="../api/supriya/enums.html#supriya.enums.CalculationRate", color=black, fontcolor=white, label="Calculation\nRate", target=_top]; } subgraph "cluster_uqbar.enums" { graph [label="uqbar.enums"]; node [color=4]; "uqbar.enums.IntEnumeration" [label="Int\nEnumeration"]; } "builtins.int" -> "enum.IntEnum"; "builtins.object" -> "enum.Enum"; "enum.IntEnum" -> "uqbar.enums.IntEnumeration"; "uqbar.enums.IntEnumeration" -> "supriya.enums.AddAction"; "uqbar.enums.IntEnumeration" -> "supriya.enums.CalculationRate"; }


Enumerations

AddAction An enumeration of scsynth node add actions.
CalculationRate An enumeration of scsynth calculation-rates.
class supriya.enums.AddAction[source]

An enumeration of scsynth node add actions.


Attributes Summary

ADD_AFTER
ADD_BEFORE
ADD_TO_HEAD
ADD_TO_TAIL
REPLACE
ADD_AFTER = 3
ADD_BEFORE = 2
ADD_TO_HEAD = 0
ADD_TO_TAIL = 1
REPLACE = 4
class supriya.enums.CalculationRate[source]

An enumeration of scsynth calculation-rates.

>>> import supriya.synthdefs
>>> supriya.CalculationRate.AUDIO
CalculationRate.AUDIO
>>> supriya.CalculationRate.from_expr('demand')
CalculationRate.DEMAND

Attributes Summary

AUDIO
CONTROL
DEMAND
SCALAR
AUDIO = 2
CONTROL = 1
DEMAND = 3
SCALAR = 0
token