Environment: Siren
Instances of FloatSound are used for sounds with 32-bit floating-point numbers as samples.
accessing
sampleSize
Answer the size in bytes of the receiver's samples (4).
private
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
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
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
Answer a typical float sound read in from a file.