ADSR Audio Envelope: How to get it?

16 views (last 30 days)
Nycholas Maia
Nycholas Maia on 15 Feb 2017
Commented: Nycholas Maia on 9 Nov 2017
How can I get the ADSR sample points of a audio file...Like:
"Fake" example:
[Amp, SR] = audioread(audio.file);
[a d s r] = get_ADSR(Amp);
% Results: The sample position of the Amp vector:
a = 85 % End of Attack -> Attack start = Amp(0)
d = 300 % End of Decay
s = 2456 % End of Sustain
r = 50000 % End of Release

Answers (1)

Matthew Novick
Matthew Novick on 7 Nov 2017
Could you please clarify your question? Is 'audio.file' a generic waveform, and you want a function that will automatically characterize the parameters of an ADSR envelope, similar to that in the Wikipedia link below? https://en.wikipedia.org/wiki/Synthesizer#Attack_Decay_Sustain_Release_.28ADSR.29_envelope
  1 Comment
Nycholas Maia
Nycholas Maia on 9 Nov 2017
Yes! I would like to get the ADSR parameters from a generic waveform. The Wikipedia article is correct.
Example: https://en.wikipedia.org/wiki/Synthesizer#/media/File:ADSR_parameter.svg
Is it possible?

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!