Class:            FloatSound

Environment:      Siren
Superclass:         Siren.SampledSound
Category:         Music-Sound
Indexed variables:   objects

Instances of FloatSound are used for sounds with 32-bit floating-point numbers as samples.
There are behaviors for mapping into other formats.

accessing

format
   Return the receiver's format--a symbol constant.

sampleSize
   Answer the size in bytes of the receiver's samples (4).

private

privateSampleAt: index
   Answer the sample at the given index.

privateSampleAt: index put: aValue
   Stuff the given sample into the data array at the given index (no checking).

sample accessing

intSampleAt: index
   Answer the sample at the given index as a scaled 16-bit integer.

intSampleAt: index put: aValue
   Put the given integer sample at the given index after scaling.

MetaClass:         FloatSound class

class constants

formatSymbol
   Answer the symbolic code used for the format of the receiver's instances.

maxSample
   Answer the maximum value of the receiver class.

minSample
   Answer the minimum value of the receiver class.

examples

fileExample
   Answer a typical float sound read in from a file.