SampleFormat

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.SampleFormat.SampleFormat" [URL="../api/supriya/soundfiles/SampleFormat.html#supriya.soundfiles.SampleFormat.SampleFormat", color=black, fontcolor=white, label="Sample\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.SampleFormat.SampleFormat"; }

class supriya.soundfiles.SampleFormat.SampleFormat[source]

An enumeration of soundfile sample formats.

>>> import supriya.soundfiles
>>> supriya.soundfiles.SampleFormat.INT24
SampleFormat.INT24
>>> supriya.soundfiles.SampleFormat.from_expr('float')
SampleFormat.FLOAT
>>> sample_format = supriya.soundfiles.SampleFormat.INT24
>>> sample_format.name.lower()
'int24'

Attributes Summary

ALAW
DOUBLE
FLOAT
INT16
INT24
INT32
INT8
MULAW
ALAW = 1
DOUBLE = 2
FLOAT = 3
INT16 = 5
INT24 = 0
INT32 = 6
INT8 = 4
MULAW = 7