Attack Sustain Decay Release

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
dr_flam
Posts: 5
Joined: Sat Jul 03, 2010 7:34 am
Operating System: Please select

Attack Sustain Decay Release

Post by dr_flam » Sat Jul 03, 2010 7:41 am

Dear all,

I'm new to this forum! :-)

In this period I'm recording and analizing drum sounds. I would like to know if I can derive Attack, Sustain and decay parameters of a drum shot with Audacity.
If not, can you suggest any other audio software to do it?

best wishes from sunny Italy! :D

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Attack Sustain Decay Release

Post by steve » Sat Jul 03, 2010 1:42 pm

dr_flam wrote:I would like to know if I can derive Attack, Sustain and decay parameters of a drum shot with Audacity.
You mean in some way other than looking at the waveform?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dr_flam
Posts: 5
Joined: Sat Jul 03, 2010 7:34 am
Operating System: Please select

Re: Attack Sustain Decay Release

Post by dr_flam » Tue Jul 06, 2010 4:25 pm

Hi Steve,

thanks for the replay. I mean that I would like to derive from the waveform the attack and decay time in milliseconds for e.g. 20, 30, or 40 db reduction.
Or in other words in a quantitative way. Any suggestion?

best,

M.

Trebor
Posts: 9963
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Attack Sustain Decay Release

Post by Trebor » Tue Jul 06, 2010 6:22 pm

dr_flam wrote:... I mean that I would like to derive from the waveform the attack and decay time in milliseconds for e.g. 20, 30, or 40 db reduction.
Or in other words in a quantitative way. Any suggestion?
If you select "length", (dot the circle), the length of the highlighted portion is displayed (in seconds / milliseconds /samples) ...
length of (dark blue) highlighted section in milliseconds on Audacity.png
length of (dark blue) highlighted section in milliseconds on Audacity.png (7.9 KiB) Viewed 3309 times
You can select to display the waveform in dB if that helps ...
Audacity option to display waveform in dB.png
Audacity option to display waveform in dB.png (17.17 KiB) Viewed 3310 times

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Attack Sustain Decay Release

Post by steve » Tue Jul 06, 2010 6:56 pm

I don't know of any analysis tools that will produce numerical outputs, but you can see on this image (a cowbell hit) that the attack is 86 samples duration. The sample rate of this recording is 44100 Hz, so the attack can be calculated as 86/44100 = 0.00195 seconds = 1.95 ms
(Click on image to expand)
attack.png
Click on image to expand
attack.png (16 KiB) Viewed 3304 times
Drum hits typically have a very sharp attack and a less sharp, roughly exponential decay. This does not work quite the same way as an ASDR envelope which is typically used by synthesizers. If you are looking to synthesize drum sounds, you will need to draw your own approximation as in this example:
ADSR.png
ADSR.png (15.18 KiB) Viewed 3305 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dr_flam
Posts: 5
Joined: Sat Jul 03, 2010 7:34 am
Operating System: Please select

Re: Attack Sustain Decay Release

Post by dr_flam » Wed Jul 07, 2010 8:17 am

Dear Trebor and Steve,

thanks a lot! I think I'm really close to what I want! :D

What I'm doing is to compare drum sounds e.g. tom-toms with and without dampening rings and see how sustain varies.

The last figure by steve is exactly what I want!

Three questions:

*How did you derive the different lines? Only drawn by hand?

*What do you have on the y axis?

*What would be in this example the duration of the sustain?

thanks a lot!!!

M.

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Attack Sustain Decay Release

Post by steve » Wed Jul 07, 2010 10:57 pm

dr_flam wrote: *How did you derive the different lines? Only drawn by hand?
Yes, drawn by hand.
dr_flam wrote:*What do you have on the y axis?
The y axis is a linear scale +/- 1.0 (the default "waveform" view).
If you want the read-out in dB, click on the track name and select "Waveform dB".

The relationship between the linear scale and dB (approximately)
+/- 1.0 = 0dB
+/- 0.5 = -6dB
+/- 0.25 = -12dB
+/- 0.125 = -18dB
+/- 0.0625 = -24dB
dr_flam wrote:*What would be in this example the duration of the sustain?
If you're talking about ADSR envelopes, it is zero, but that's not very useful for your purposes.
For measuring the sustain of a drum, it would be more useful to decide on what level you are going to consider to be "silence" (if you had an infinitely sensitive microphone and no other noise, the drum would probably ring forever, but at a very very very low level).

You will probably find it most convenient to use the "Silence Finder" tool (in the "Analyze" menu) to mark the point at which the sound becomes "silent".
Let's say that you decide that -24dB is close enough to silence, use the Silence Finder tool and set the first slider to -24 and the other 2 sliders to minimum.

It would probably be interesting compare the "sustain" (how long it rings) with/without damping rings using different "threshold" settings (the first slider), that way you will be able to see how much the rings affect the decay from peak to -6/-12/-18/-24/-48 dB which will show how the damping effect varies over time/amplitude. I would expect the damping effect from peak to -24dB to be a much greater difference than the damping effect from peak to -6dB.

I would be interested to know how you get on with this - your results/conclusions.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dr_flam
Posts: 5
Joined: Sat Jul 03, 2010 7:34 am
Operating System: Please select

Re: Attack Sustain Decay Release

Post by dr_flam » Fri Jul 09, 2010 2:23 pm

Dear Steve,

thanks a lot, this was exactly what I was looking fore! You deserve a pint of beer!! :-)

I think that what you are calculating with the "silence finder" tool is a kind of decay time. I processed my files with the silence finder with db levels of 20, 30 and 40 db as suggested in Toulson et al. 2008 (The perception and importance of drum tuning in live performance and music production). Toulson reports a reduction in decay time from 752 ms to 199 ms after adding a damper ring to a 12" tom-tom. I made a similar experiment with a 12" tom-tom. I compared the sound of the drum with both heads at the same pitch (i.e. 196 Hz, G3) and with the batter head at much higher pitch (i.e. 292 Hz, D4). Here are the results:

Same tension: 20db:430, 30db: 730, 40db: 1450 ms
High pitch: 20db: 320, 30db: 690, 40db: 1130 ms

So the drum with heads tuned to the same pitch have a higher decay time as I would have expected.

I have a couple of questions:

1) I decided to normalize the audio files to 0 db before analyzing them to avoid differences coming from the possible striking power. Do you think it's right?

2) How can I determine if in the drum sound there are beats? I saw that in the "analyze" menu there is a "beat finder" tool. Have you ever tried to use it?

best wishes and thanks again,

M.

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Attack Sustain Decay Release

Post by steve » Fri Jul 09, 2010 3:02 pm

dr_flam wrote:You deserve a pint of beer!!
Thank you, I'll have one later :)
dr_flam wrote: 1) I decided to normalize the audio files to 0 db before analyzing them to avoid differences coming from the possible striking power. Do you think it's right?
Yes definitely or else your measurements will be all over the place, but I think that you should also try to hit the drum with as close to equal force as you can so that you are comparing like with like.

Try repeating the experiment, but instead of changing the skin tension, compare the measurements that you get with a soft hit compared with a hard hit. I would not be surprised if there was a measurable difference in the decay rate (even after normalising).
dr_flam wrote:saw that in the "analyze" menu there is a "beat finder" tool. Have you ever tried to use it?
The Beat finder tool is for detecting sudden changes in amplitude and it places a marker at each "beat" that is found.
Try generating a click track (from the "Generate" menu), or play a slow rhythm on a tom and record it, then select the entire track and apply the Beat finder tool. It works quite well on single drum tracks, but becomes less accurate with full music mixes where the "beat" (rhythm) is less well defined.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dr_flam
Posts: 5
Joined: Sat Jul 03, 2010 7:34 am
Operating System: Please select

Re: Attack Sustain Decay Release

Post by dr_flam » Fri Jul 09, 2010 8:25 pm

Hi Steve,

I realized that it is fundamental to normalize the tracks to 0 before applying the "silence finder", I compared normalized and non normalized tracks and got quite different results. Moreover for my 12 in tom-tom it seems more efficient to use a db reduction of 50 db.

I made a quick experiment.
Decay time without muffling ring: 2260 ms
Decay time with muffling ring: 2120 ms

If I will find the time I will test the striking force!

With this technique I could test e.g. head type, head combination, shell type, tom mounting system effects on decay time!! But it would take a life!! :lol:

Concerning beats I meant "frequency beats" that cause the sound to a kind of pulse or vibration. Do you know if there is any technique to test if a drum sound is affected by beats? Of course I can hear it but I want an objective measurement of it!! :D

best wishes,

M.

Post Reply