sfinfo~
Description
sfinfo~ gives you the number of channels, sample size, sampling rate, sampletype, filename, and duration of a soundfile.
Examples

Arguments
filename [symbol]
Names a file that sfinfo~ will report about when it receives a subsequent message. The file must exist in the Max search path.
Attributes
Common Box Attributes
Messages
bang
message or specified by an argument to(drag)
getnamed
Arguments
open
Arguments
Output
alaw
8-bit a-law encoding
Out 6th outlet: The filename of the audio file
float
Out 3rd outlet: The audio file's sampling rate.
Out 4th outlet: The duration of the audio file in milliseconds.
float32
32-bit floating-point
float64
64-bit floating-point
int
Out left outlet: The number of channels in the audio file.
Out 2nd outlet: The audio file's sample size in bits (typically 16).
int16
16-bit integer
int24
24-bit integer
int32
32-bit integer
int8
8-bit integer
mulaw
8-bit "mu"-law encoding
symbol
Out 5th outlet: the sample type of the audio file.
The following types of sample data are supported:
uint8
unsigned 8-bit integer
See Also
Name | Description |
---|---|
info~ | |
sflist~ | |
sfplay~ | |
MSP Sampling Tutorial 6: Record and Play Audio Files | MSP Sampling Tutorial 6: Record and Play Audio Files |