ADSR Audio Envelope: How to get it?

조회 수: 8 (최근 30일)
Nycholas Maia
Nycholas Maia 2017년 2월 15일
댓글: Walter Roberson 2024년 8월 9일
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
  댓글 수: 1
Walter Roberson
Walter Roberson 2024년 8월 9일

For questions about GNU Octave, ask in a GNU Octave support resource.

The purpose of Octave is to put Mathworks out of business, so we decline to support it here.

댓글을 달려면 로그인하십시오.

답변 (1개)

Matthew Novick
Matthew Novick 2017년 11월 7일
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
Nycholas Maia
Nycholas Maia 2017년 11월 9일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by