Audio Toolkit - audioEnvelope
[minenv ,maxenv, loc, fs] =audioEnvelope(audiodata)[minenv ,maxenv, loc, fs] =audioEnvelope(filename)[minenv ,maxenv, loc, fs] =audioEnvelope(___,propname, propvalue …)- audioEnvelope(___)
calculate envelope information for a audio signal.
Inputs
audiodata - input data, as a matrix or column vector where each column is a channel.
filename - input audio file to read.
propname, propvalue - property name/value pairs.
Known properties are:
- NumPoints
Number of points that make up each envelop (default 1000)
- SampleRate
Samplerate of the input data. When a filename is specified, sample rate is taken from the file.
- Range
A 2 element vector for the start,end range of input signal to be used.
Outputs
minenv - minimum values of the envelope as a NumPoints-by-C matrix, where C is the number of channels in the input signal.
maxenv - maximum values of the envelope as a NumPoints-by-C matrix, where C is the number of channels in the input signal.
loc - Index into the audioodata for each frame.
fs - Sample rate. If the input is audiodata, and no sample rate option was provided, fs will be 1.