LPCFile:
Filter:
JoshMisc/Classes (extension) | Libraries > JoshUGens | UGens > Analysis:Synthesis

LPCFile
ExtensionExtension

For working with CSounds LPC file data

Description

For working with CSounds LPC file data.

Class Methods

.new

Load an LPC file into memory at path with buffer number bufnum.

Arguments:

path

Path to LPC file.

buffer

If bufnum is left empty, one will be allocated for you.

server

Defaults to Server.default.

Instance Methods

.loadToBuffer

Loads the information of the LPC file into a buffer for use by the LPCSynth UGens.

.buffer

Arguments:

buf

Returns:

Returns the buffer number LPC data is stored in.

.free

Frees buffer.

.numPoles

.init

Arguments:

thisbuf
thisserver
thispath

.asControlInput

.magicNum

.signal

.srate

.nframes

.pchcps

.path

.data

.header

.server

.asUGenInput

.restOfHeader

.readData

.headerSize

.origrms

.readHeader

.len

.saveLPCFile

Arguments:

path

.nrmerr

.loadToSignal

.coefs

.frameRate

.bufnum

.nvals

.le

.sndDur

.resrms

.read

.saveToFile

Arguments:

path

Examples

This uses the fate.lpc file, created with the following command:

lpanal -p 50 -h 300 fate.aiff fate.lpc

Analysis window is 2X the hop size.