简体   繁体   中英

How to extract a Sound envelope from a .wav file using Python?

I have a sound file which comprise of the instrumental sound. What I want to do is examine the each note of the instrument by extracting from the audio file. Can I use python for doing this or any other open source software that you can recommend to do this. I got the waveform using Audacity. I have attached the image of the sound file and red mark indicate the portion to be extracted. Starting and ending of the envelope. (Only single instrument is played in the audio file).
[声音文件的波形

The thing you want is usually called an envelope detector or envelope follower . Maybe try out the pyo project for this. The analysis module has a few envelope followers available.

Edit: I appear to have misunderstood your question from the title. You want to actually split the notes? I would extract the envelope, then split based on a threshold.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM