'\" t .\" Title: lpanal .\" Author: .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 08/01/2011 .\" Manual: The Canonical Csound Reference Manual .\" Source: 5.10 .\" Language: English .\" .TH "LPANAL" "1" "08/01/2011" "5.10" "The Canonical Csound Reference" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" lpanal \- Performs both linear predictive and pitch\-tracking analysis on a soundfile\&. .\" lpanal .SH "DESCRIPTION" .PP Linear predictive analysis for the Csound Linear Predictive Coding (LPC) Resynthesis opcodes\&. .SH "SYNTAX" .sp .if n \{\ .RS 4 .\} .nf \fBcsound \-U lpanal\fR [flags] infilename outfilename .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf \fBlpanal\fR [flags] infilename outfilename .fi .if n \{\ .RE .\} .SH "INITIALIZATION" .PP \fIlpanal\fR performs both lpc and pitch\-tracking analysis on a soundfile to produce a time\-ordered sequence of \fIframes\fR of control information suitable for Csound resynthesis\&. Analysis is conditioned by the control flags below\&. A space is optional between the flag and its value\&. .PP \fI\-a\fR \-\- [alternate storage] asks lpanal to write a file with filter poles values rather than the usual filter coefficient files\&. When \fIlpread\fR / \fIlpreson\fR are used with pole files, automatic stabilization is performed and the filter should not get wild\&. (This is the default in the Windows GUI) \- Changed by Marc Resibois\&. .PP \fI\-s srate\fR \-\- sampling rate of the audio input file\&. This will over\-ride the srate of the soundfile header, which otherwise applies\&. If neither is present, the default is 10000\&. .PP \fI\-c channel\fR \-\- channel number sought\&. The default is 1\&. .PP \fI\-b begin\fR \-\- beginning time (in seconds) of the audio segment to be analyzed\&. The default is 0\&.0 .PP \fI\-d duration\fR \-\- duration (in seconds) of the audio segment to be analyzed\&. The default of 0\&.0 means to the end of the file\&. .PP \fI\-p npoles\fR \-\- number of poles for analysis\&. The default is 34, the maximum 50\&. .PP \fI\-h hopsize\fR \-\- hop size (in samples) between frames of analysis\&. This determines the number of frames per second (srate / hopsize) in the output control file\&. The analysis framesize is hopsize * 2 samples\&. The default is 200, the maximum 500\&. .PP \fI\-C string\fR \-\- text for the comments field of the lpfile header\&. The default is the null string\&. .PP \fI\-P mincps\fR \-\- lowest frequency (in Hz) of pitch tracking\&. \-P0 means no pitch tracking\&. .PP \fI\-Q maxcps\fR \-\- highest frequency (in Hz) of pitch tracking\&. The narrower the pitch range, the more accurate the pitch estimate\&. The defaults are \-P70, \-Q200\&. .PP \fI\-v verbosity\fR \-\- level of terminal information during analysis\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 0 = none .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 1 = verbose .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} 2 = debug .RE .sp The default is 0\&. .SH "EXAMPLES" .PP .sp .if n \{\ .RS 4 .\} .nf \fIlpanal\fR \-a \-p26 \-d2\&.5 \-P100 \-Q400 audiofile\&.test lpfil22 .fi .if n \{\ .RE .\} .sp will analyze the first 2\&.5 seconds of file "audiofile\&.test", producing srate/200 frames per second, each containing 26\-pole filter coefficients and a pitch estimate between 100 and 400 Hertz\&. Stabilized (\fI\-a\fR) output will be placed in "lpfil22" in the current directory\&. .SS "File Format" .PP Output is a file comprised of an identifiable header plus a set of frames of floating point analysis data\&. Each frame contains four values of pitch and gain information, followed by \fInpoles\fR filter coefficients\&. The file is readable by Csound\*(Aqs lpread\&. .PP \fIlpanal\fR is an extensive modification of Paul Lanksy\*(Aqs lpc analysis programs\&. .SH "AUTHORS" .PP \fBBarry Vercoe\fR .br MIT Media Lab .RS 4 Author. .RE .PP \fBDan Ellis\fR .br MIT Media Lab, Cambridge Massachussetts .RS 4 Author. .RE .SH "COPYRIGHT" .br