Reading and Writing Sound Files

READWAV("file") Creates a matrix containing signal amplitudes in file. Each column represents a separate channel of data. Each row corresponds to a sample in time.

WRITEWAV("file", s, b, [M]) Creates a WAV signal file out of a matrix. This function can be used either on the right or the left side of the definition operator. When used on the right, you must supply the argument M, the name of the matrix to write to the file. In this case, the function returns the contents of the matrix. When used on the left, do not supply the argument M, but instead place it on the right hand side of the definition. See the QuickSheet example.

GETWAVINFO("file") Creates a vector with four elements containing information about file. The elements correspond to the number of channels, the sample rate, the number of bits per sample (resolution), and the average number of bytes per second, respectively.

Arguments:

Notes:

QuickSheet