Class:            LPCSound

Environment:      Siren
Superclass:         Siren.MusicEvent
Category:         MusicApps-LPC
Instance variables:   filename filesize srate frate npoles nframes frames
               pchMax pchMin pitchRange rmsRange residRange

An LPCSound represents LPC data read in from a Csound LPC file.

Instance Variables:
   filename    my source file name
   filesize    the raw file size
   srate    the sound's sample rate
   frate    the frame rate
   npoles    the # of poles
   nframes    the # of frames
   frames    the frame data
   pchMax    max est. pitch
   pchMin    min est. pitch
   pitchRange    est. pitch range
   rmsRange    RMS amplitude range
   residRange    error residual range

smoothing

smooth: data into: res
   filter the data

smoothAvg: data into: res
   filter the data

smoothPitch
   filter the data

smoothRunning: data into: res
   filter the data

writePitch: howSmooth
   Replace the pitch values in the receiver's frames with a smoothed version selected by the argument.

printing

printOn: aStream
   Format and print the receiver on the argument.

storeFile
   Store the receiver as a Csound format LPC file.

storeOn: aStream
   Store the receiver on the argument as a Csound format LPC file.

accessing

addFrame: frame
   

filename
   

filename: aValue
   

filesize
   

filesize: aValue
   

float: ind from: data
   Answer the swapped float from the data at the index.

floatAt: ind put: value in: data
   Store the swapped float into the data at the index.

frameAt: ind put: frame
   

frames
   

frames: aValue
   

frate
   

frate: aValue
   

long: ind from: data
   Answer the swapped long int from the data at the index.

longAt: ind put: value in: data
   Store the swapped long int into the data at the index.

nframes
   

nframes: aValue
   

npoles
   

npoles: aValue
   

srate
   

srate: aValue
   

statistics

gatherStatistics
   Compute the max and min-non-0 pitch values for later.

MetaClass:         LPCSound class

instance creation

fromFile: filename
   Read in an lpc sound from the given Csound format file.