SuperCollider CLASSES (extension)

LPCFile

For working with CSounds LPC file data

Description

For working with CSounds LPC file data.

Class Methods

*new (path, buffer, server)

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.

Inherited class methods

Instance Methods

-loadToBuffer

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

-buffer

-buffer = buf

Arguments:

buf

Returns:

Returns the buffer number LPC data is stored in.

-free

Frees buffer.

-numPoles

-init (thisbuf, thisserver, thispath)

Arguments:

thisbuf
thisserver
thispath

-asControlInput

-magicNum

-signal

-srate

-nframes

-pchcps

-pchcps = value

-path

-data

-header

-server

-asUGenInput

-restOfHeader

-readData

-headerSize

-origrms

-origrms = value

-readHeader

-len

-saveLPCFile (path)

Arguments:

path

-nrmerr

-nrmerr = value

-loadToSignal

-coefs

-coefs = value

-frameRate

-bufnum

-nvals

-le

-sndDur

-resrms

-resrms = value

-read

-saveToFile (path)

Arguments:

path

Inherited instance methods

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.

a = LPCFile.new(Platform.resourceDir +/+ "sounds/fate.lpc");