LPC

Section: Misc. Reference Manual Pages (CMIX-2)
Index Return to Main Contents
 

NAME

lpc - do a resynthesis of a sound from an LPC dataset.  

SYNOPSIS

lpc [start] [dur] [transposition] [first frame] [last frame] [amp] [warp]
    (optionally) [frame 1] [transp 1] ... [frame n] [transp n]  

DESCRIPTION

lpc is a cmix implementation of Linear Predictive Coding. It expects to find an lpc dataset which has been opened with the dataset command. There are a number of dataset-specific parameters which are established in the cmix functions dataset and lpcstuff calls to both of which much precede any call to lpc.

It also requires that function table 1 be filled with a sine wave, which is accomplished by the following card:

makegen(1,1024,10,1)

The first two arguments for lpc specify time to start writing on the output file (opened previously with an output card, and the duration of the resynthesis.

The third argument determines the manor and value of pitch transposition (if any) to be used. If the absolute value of this argument is smaller than one, it is interpretted as an octave point pitch class absolute transposition. For example ".07" would result in an upward transposition of a fifth (7 semitones) while "-.175" would result in a downward transpostion of an octave plus a fourth plus a quarter tone. Note that a more detailed transposition curve can be outlined using optional couplets from p[7],p[8] ... p[n-1],p[n]. In this case, the first member of each couplet is a frame number -- the second is the transposition to be used at that frame number. Linear interpolation is made between all the couplets specified. Frames not covered by these pairs of couplets default to the transposition in p[2].

The next two arguments (p[3],p[4]) are the first and last frames from the analysis to be used in the resynthesis.

p[5] is the relative amplitude of the resynthesis.

p[6] is the "warp" factor to be used. Warping is an attempt to simulate the non-linear formant shifting that occurs in the transposition of carbon-based vibrating bodies. It is a fudge, but a pretty good one. Values should range from 0 (no warping) to 10 (tons of compensation for the given transposition).  

SEE ALSO

dataset, lpcstuff  

BUGS


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 00:08:36 GMT, November 05, 2022