SampleFormat

class supriya.tools.soundfiletools.SampleFormat[source]

An enumeration of soundfile sample formats.

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

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_datastructuretools { graph [label=datastructuretools]; "abjad.tools.datastructuretools.Enumeration.Enumeration" [color=2, group=1, label=Enumeration, shape=box]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.int" [color=1, group=0, label=int, shape=box]; "builtins.object" [color=1, group=0, label=object, shape=box]; "builtins.object" -> "builtins.int"; } subgraph cluster_enum { graph [label=enum]; "enum.Enum" [color=3, group=2, label=Enum, shape=box]; "enum.IntEnum" [color=3, group=2, label=IntEnum, shape=box]; "enum.Enum" -> "enum.IntEnum"; } subgraph cluster_soundfiletools { graph [label=soundfiletools]; "supriya.tools.soundfiletools.SampleFormat.SampleFormat" [color=black, fontcolor=white, group=3, label=<<B>SampleFormat</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.Enumeration.Enumeration" [color=5, group=4, label=Enumeration, shape=box]; } "abjad.tools.datastructuretools.Enumeration.Enumeration" -> "supriya.tools.systemtools.Enumeration.Enumeration"; "builtins.int" -> "enum.IntEnum"; "builtins.object" -> "enum.Enum"; "enum.IntEnum" -> "abjad.tools.datastructuretools.Enumeration.Enumeration"; "supriya.tools.systemtools.Enumeration.Enumeration" -> "supriya.tools.soundfiletools.SampleFormat.SampleFormat"; }

Bases

Enumeration Items

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