'\" t .\" Title: sndinfo .\" Author: .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 08/01/2011 .\" Manual: The Canonical Csound Reference Manual .\" Source: 5.10 .\" Language: English .\" .TH "SNDINFO" "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" sndinfo \- Displays information about a soundfile\&. .\" sndinfo .SH "DESCRIPTION" .PP Get basic information about one or more soundfiles\&. .SH "SYNTAX" .sp .if n \{\ .RS 4 .\} .nf \fBcsound \-U sndinfo\fR [options] soundfilenames \&.\&.\&. .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf \fBsndinfo\fR [options] soundfilenames \&.\&.\&. .fi .if n \{\ .RE .\} .SH "INITIALIZATION" .PP \fIsndinfo\fR will attempt to find each named file, open it for reading, read in the soundfile header, then print a report on the basic information it finds\&. The order of search across soundfile directories is as described above\&. If the file is of type AIFF, some further details are listed first\&. .PP There are two option types: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ .sp -1 .IP " 1." 4.2 .\} \fI\-i\fR or \fI\-i1\fR will print instrument information, which includes looping\&. The option continues until a \fI\-i0\fR option\&. .RE .sp .RS 4 .ie n \{\ \h'-04' 2.\h'+01'\c .\} .el \{\ .sp -1 .IP " 2." 4.2 .\} The other option is \fI\-b\fR which prints the broadcast information for WAV files\&. It can similarly be negated with \fI\-b0\fR\&. .RE .sp .SH "EXAMPLES" .PP .sp .if n \{\ .RS 4 .\} .nf \fIcsound \-U sndinfo\fR test Bosendorfer/"BOSEN mf A0 st" foo foo2 .fi .if n \{\ .RE .\} .sp where the environment variables SFDIR = /u/bv/sound, and SSDIR = /so/bv/Samples, might produce the following: .sp .if n \{\ .RS 4 .\} .nf util SNDINFO: /u/bv/sound/test: srate 22050, monaural, 16 bit shorts, 1\&.10 seconds headersiz 1024, datasiz 48500 (24250 sample frames) /so/bv/Samples/Bosendorfer/BOSEN mf A0 st: AIFF, 197586 stereo samples, base Frq 261\&.6 (MIDI 60), sustnLp: mode 1, 121642 to 197454, relesLp: mode 0 AIFF soundfile, looping with modes 1, 0 srate 44100, stereo, 16 bit shorts, 4\&.48 seconds headersiz 402, datasiz 790344 (197586 sample frames) /u/bv/sound/foo: no recognizable soundfile header /u/bv/sound/foo2: couldn\*(Aqt find .fi .if n \{\ .RE .\} .sp .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