HeaderFormat

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.soundfiles" { graph [label="supriya.soundfiles"]; node [color=3]; "supriya.soundfiles.HeaderFormat.HeaderFormat" [URL="../api/supriya/soundfiles/HeaderFormat.html#supriya.soundfiles.HeaderFormat.HeaderFormat", color=black, fontcolor=white, label="Header\nFormat", 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.soundfiles.HeaderFormat.HeaderFormat"; }

class supriya.soundfiles.HeaderFormat.HeaderFormat[source]

An enumeration of soundfile header formats.

>>> import supriya.soundfiles
>>> supriya.soundfiles.HeaderFormat.AIFF
HeaderFormat.AIFF
>>> supriya.soundfiles.HeaderFormat.from_expr('wav')
HeaderFormat.WAV
>>> header_format = supriya.soundfiles.HeaderFormat.from_expr('wav')
>>> header_format.name.lower()
'wav'

Attributes Summary

AIFF
IRCAM
NEXT
RAW
WAV
AIFF = 0
IRCAM = 1
NEXT = 2
RAW = 3
WAV = 4