Audio Signal Processing, Machine Learning, Spectrogram.
Different sounds will render different envelopes as you can see the difference between these two. The attack on the jazz organ is not as dramatic as the attack on the steinway but they have similar decays and very distinctive sustains being that the jazz organ has a bit of a vibrato pattern.