Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sndinfo(1) [linux man page]

SNDINFO(1)						  The Canonical Csound Reference						SNDINFO(1)

NAME
sndinfo - Displays information about a soundfile. . DESCRIPTION
Get basic information about one or more soundfiles. SYNTAX
csound -U sndinfo [options] soundfilenames ... sndinfo [options] soundfilenames ... INITIALIZATION
sndinfo 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. There are two option types: 1. -i or -i1 will print instrument information, which includes looping. The option continues until a -i0 option. 2. The other option is -b which prints the broadcast information for WAV files. It can similarly be negated with -b0. EXAMPLES
csound -U sndinfo test Bosendorfer/"BOSEN mf A0 st" foo foo2 where the environment variables SFDIR = /u/bv/sound, and SSDIR = /so/bv/Samples, might produce the following: 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't find AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.07 06/23/2009 SNDINFO(1)

Check Out this Related Man Page

SRCONV(1)						  The Canonical Csound Reference						 SRCONV(1)

NAME
srconv - Converts the sample rate of an audio file. . DESCRIPTION
Converts the sample rate of an audio file at sample rate Rin to a sample rate of Rout. Optionally the ratio (Rin / Rout) may be linearly time-varying according to a set of (time, ratio) pairs in an auxiliary file. SYNTAX
srconv [flags] infile INITIALIZATION
Flags: o -P num = pitch transposition ratio (srate / r) [don't specify both P and r] o -P num = pitch transposition ratio (srate / r) [don't specify both P and r] o -Q num =quality factor (1, 2, 3, or 4: default = 2) o -i filnam = auxiliary breakpoints file (no breakpoint by default. i.e. No ratio change) o -r num = output sample rate (must be specified) o -o fnam = sound output filename o -A = create an AIFF format output soundfile o -J = create an IRCAM format output soundfile o -W = create a WAV format output soundfile o -h = no header on output soundfile o -c = 8-bit signed_char sound samples o -a = alaw sound samples o -8 = 8-bit unsigned_char sound samples o -u = ulaw sound samples o -s = short_int sound samples o -l = long_int sound samples o -f = float sound samples o -r N = orchestra srate override o -K = Do not generate PEAK chunks o -R = continually rewrite header while writing soundfile (WAV/AIFF) o -H# = print a heartbeat style 1, 2 or 3 at each soundfile write o -N = notify (ring the bell) when score or miditrack is done o -- fnam = log output to file This program performs arbitrary sample-rate conversion with high fidelity. The method is to step through the input at the desired sampling increment, and to compute the output points as appropriately weighted averages of the surrounding input points. There are two cases to consider: 1. sample rates are in a small-integer ratio - weights are obtained from table. 2. sample rates are in a large-integer ratio - weights are linearly interpolated from table. Calculate increment: if decimating, then window is impulse response of low-pass filter with cutoff frequency at half of output sample rate; if interpolating, then window is impulse response of lowpass filter with cutoff frequency at half of input sample rate. CREDITS
Author: Mark Dolson August 26, 1989 Author: John ffitch December 30, 2000 AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.10 08/01/2011 SRCONV(1)
Man Page