Vous êtes sur la page 1sur 14

AJAY SHANKAR----------------------------------------------------------------------------ME20BTECH11003

sine 1khz pink noise


octave freq spl(dB)[ref] spl(db) spl(db)[calibrated] spl(dB)[ref] pink uncal spl(db)[calibrated]
31.5 47.8 27.8864 35.3192 48.1 31.0707 38.5034
63 44.2 37.3415 44.7742 60.8 53.2672 60.6999
125 38.2 34.165 41.5977 71.5 66.9532 74.3859
250 36.3 33.0631 40.4958 77 75.4403 82.873
500 44.5 33.735 41.1677 73.3 70.7459 78.1787
1000 83.2 79.4839 86.9166 71.2 67.8717 75.3044
2000 44.6 33.0664 40.4991 66.4 64.3025 71.7353
4000 30.4 29.8975 37.3302 65.5 66.4716 73.9043
8000 20 26.5678 34.0006 64.4 68.7701 76.2028
16000 14.3 19.7225 27.1552 64.6 63.8877 71.3204

sine wave comparison


100

80

60
spl(dB)

40

20

0
0 5000 10000 15000 20000
Octave freq

spl(dB)[ref] spl(db)[calibrated]

pink noise comparison


90
80
70
60
spl(dB)

50
40
30
20
10
0
0 5000 10000 15000 20000
Ocatve freq

spl(dB)[ref] spl(db)[calibrated]
sine 1khz pink noise
1/3oct spl(dB)[ref] sine spl(db)[calibrated] spl(dB)[ref] pink spl(db)[calibrated]
12.5 43.4 -1.065 6.1677 44.0 17.9333 25.166
16 51.6 4.6286 11.8613 51.3 16.8838 24.1165
20 48.9 8.8519 16.0846 48.4 20.1519 27.3846
25 46.7 15.5776 22.8104 46.7 22.0528 29.2855
31.5 39.9 21.4698 28.7025 40.9 24.5513 31.784
40 36.9 26.6037 33.8365 37.8 29.1955 36.4282
50 35.6 29.7171 36.9499 40.6 32.8609 40.0936
63 41.4 34.2945 41.5272 52.6 44.3066 51.5393
80 39.5 32.3633 39.596 60.0 53.1678 60.4005
100 36.6 31.4263 38.659 69.5 64.4895 71.7222
125 31.1 28.7636 35.9963 62.8 58.6647 65.8975
160 28.8 26.5614 33.7941 65.2 62.289 69.5217
200 31.9 25.6244 32.8571 71.0 66.0777 73.3104
250 32.9 28.8499 36.0826 66.9 63.4638 70.6965
315 29.2 29.5151 36.7478 75.2 74.5706 81.8033
400 32.1 31.7197 38.9524 66.6 61.0565 68.2892
500 33.8 25.7518 32.9845 71.3 69.8848 77.1175
630 43.9 26.8602 34.093 65.1 59.3746 66.6073
800 62.9 34.9017 42.1344 68.2 65.7053 72.938
1000 83.1 79.4836 86.7164 66.6 61.4244 68.6571
1250 62.9 34.1284 41.3611 62.8 59.871 67.1037
1600 44.1 30.2675 37.5002 63.1 60.9242 68.1569
2000 33.6 28.4398 35.6725 61.1 58.561 65.7937
2500 28.3 24.0629 31.2957 60.3 58.1882 65.4209
3150 29.2 26.9771 34.2098 60.1 58.8689 66.1017
4000 22.2 23.8472 31.0799 61.6 62.7946 70.0273
5000 19.4 23.8932 31.1259 60.4 62.3459 69.5786
6300 17.6 24.6938 31.9265 63.1 66.7705 74.0032
8000 14.2 20.8972 28.1299 56.7 64.0962 71.3289
10000 12.3 15.3418 22.5745 54.4 49.0972 56.3299
12500 10.5 15.039 22.2717 63.3 62.2736 69.5063
16000 8.5 14.9825 22.2152 58.7 57.4963 64.729
20000 9.3 15.0106 22.2433 39.4 43.8627 51.0954
pink noise comparison 1/3 ocatve
90.0
80.0
70.0
60.0
50.0
40.0
30.0
20.0
10.0
0.0
0 5000 10000 15000 20000 25000

spl(dB)[ref] spl(db)[calibrated]

sine comparision 1/3 ocatve


100
90
80
70
60
50
40
30
20
10
0
0 5000 10000 15000 20000 25000

spl(dB)[ref] spl(db)[calibrated]

Using octave band frequency of 1000Hz for sine tone, we have

Lp_ref = Lp_code + 10log(x) where x = sensitivity

Putting Lp_ref = 83.2 dB and Lp_code = 79.5 dB, we get x = 2.37.


Audio analysis

TRIMMER
1/3oct spl(dB) spl(dBA)
12.5 9.759 -53.841
16 14.5735 -41.8265
20 17.5177 -32.8823
25 21.8839 -22.9161
31.5 27.7163 -11.7837
40 33.5616 -0.9384
50 36.5009 6.2009
63 38.0081 11.8081
80 40.4152 18.0152
100 38.4057 19.3057
125 40.5627 24.3627
160 36.0047 22.8047
200 39.5049 28.7049
250 39.3412 30.6412
315 44.1662 37.5662
400 45.2346 40.4346
500 40.1302 36.9302
630 48.3876 46.4876
800 55.0731 54.2731
1000 60.946 60.946
1250 68.6389 69.2389
1600 72.7492 73.7492
2000 81.5126 82.7126 octave freq spl(dB) spl(dBA)
2500 70.3695 71.6695 31.5 34.7556 -4.6444
3150 76.143 77.343 63 43.3661 17.1661
4000 79.8214 80.8214 125 43.5364 27.4364
5000 80.2619 80.8619 250 46.399 37.799
6300 78.0907 77.9907 500 50.5198 47.3198
8000 76.8063 75.7063 1000 69.4816 69.4816
10000 48.4697 45.9697 2000 82.2302 83.4302
12500 53.7738 49.4738 4000 83.5229 84.5229
16000 60.3162 53.6162 8000 80.9098 79.8098
20000 63.2923 53.9923 16000 65.3709 58.7709
87.321308 88.0134 87.2263469 87.84643097
EXHAUST FAN
1/3oct spl(dB) spl(dBA) octave freq spl(dB) spl(dBA)
12.5 35.2013 -28.3987 31.5 63.4502 24.0502
16 36.4847 -19.9153 63 78.8981 52.6981
20 38.7905 -11.6095 125 80.9522 64.8522
25 53.348 8.548 250 80.5659 71.9659
31.5 53.3239 13.8239 500 75.6169 72.4169
40 62.6259 28.1259 1000 73.8998 73.8998
50 70.9029 40.6029 2000 67.7266 68.9266
63 73.6219 47.4219 4000 63.0907 64.0907
80 76.3009 53.9009 8000 58.7042 57.6042
100 76.5976 57.4976 16000 46.0264 39.4264
125 76.3139 60.1139 85.888 78.5684738
160 75.4549 62.2549
200 71.1977 60.3977
250 71.2125 62.5125
315 79.4142 72.8142
400 69.2913 64.4913
500 68.3356 65.1356
630 73.2041 71.3041
800 69.6598 68.8598
1000 69.9557 69.9557
1250 68.1955 68.7955
1600 63.5732 64.5732
2000 62.7011 63.9011
2500 62.116 63.416
3150 58.3277 59.5277
4000 59.6752 60.6752
5000 56.6338 57.2338
6300 57.5745 57.4745
8000 52.1628 51.0628
10000 38.0964 35.5964
12500 42.8513 38.5513
16000 40.9137 34.2137
20000 39.5504 30.2504
85.8909793 79.09214364
SHOWER
1/3oct spl(dB) spl(dBA)
12.5 20.9771 -42.6229
16 23.3485 -33.0515
20 25.6768 -24.7232
25 29.3615 -15.4385
31.5 42.0965 2.5965
40 46.808 12.308
50 51.084 20.784
63 47.9157 21.7157
80 66.4681 44.0681
100 58.7947 39.6947
125 53.6022 37.4022
160 61.2534 48.0534
200 52.2812 41.4812
250 53.1663 44.4663
315 64.9611 58.3611
400 56.223 51.423
500 55.5682 52.3682
630 60.1287 58.2287
800 58.1 57.3
1000 58.9458 58.9458
1250 61.7074 62.3074
1600 60.0546 61.0546
2000 59.5256 60.7256
2500 57.5908 58.8908
3150 59.1725 60.3725
4000 64.4123 65.4123
5000 67.2804 67.8804
6300 70.3466 70.2466
8000 70.0296 68.9296
10000 62.4194 59.9194
12500 71.1451 66.8451
16000 74.1608 67.4608
20000 75.4135 66.1135
80.90507931 77.21352695

octave freq spl(dB) spl(dBA)


31.5 47.8395 8.4395
63 66.6506 40.4506
125 63.7814 47.6814
250 65.4584 56.8584
500 62.6545 59.4545
1000 64.7889 64.7889
2000 63.9997 65.1997
4000 69.582 70.582
8000 73.6434 72.5434
16000 78.6339 72.0339
80.9057 77.2533
Table of Contents
......................................................................................................................................................... 1
Analysis of Uncalibrated Sine Tone ........................................................................................................ 1
Analysis of Pink Noise ......................................................................................................................... 1
Analysis of Calibrated Sine Tone ........................................................................................................... 2

% Define the reference pressure


reference_pressure = 20e-6; % 20 microPascals

Analysis of Uncalibrated Sine Tone


Load the sine tone audio file
[sine_wave, sample_rate] = audioread("sin 1khz.wav");
signal_length = length(sine_wave); % Length of the signal
time_step = 1/sample_rate; % Time step

% Perform Fast Fourier Transform (FFT)


sine_fft = fft(sine_wave);

% Compute single-sided amplitude spectrum


P2_sine = abs(sine_fft/signal_length);
P1_sine = P2_sine(1:signal_length/2+1);
P1_sine(2:end-1) = 2*P1_sine(2:end-1);

% Compute Sound Pressure Level (SPL)


SPL_sine = 20*log10(P1_sine/reference_pressure);
frequency_domain = sample_rate/signal_length*(0:(signal_length/2));

% Define lower and upper bands for 1000Hz (1/3)rd octave


lower_band = 1000*2^(-1/6);
upper_band = 1000*2^(1/6);
low_freq_index = min(find(frequency_domain>=lower_band &
frequency_domain<=upper_band));
up_freq_index = max(find(frequency_domain>=lower_band &
frequency_domain<=upper_band));

% Calculate SPL values for frequencies between the lower and upper bands of
1000Hz
SPL_1000 = SPL_sine(low_freq_index:up_freq_index);
SPL_1000 = 0.1*SPL_1000;
SPL_1000 = 10.^SPL_1000;
net_SPL_1000_sine = 10*log10(sum(SPL_1000));

Analysis of Pink Noise


Calculate sensitivity
ref_oct_1000 = 83.2; % Reference SPL for 1000 Hz octave band
ref_13oct_1000 = 83.1; % Reference SPL for 1000 Hz (1/3)rd octave band

1
sensitivity = 10^(0.1*(ref_oct_1000 - net_SPL_1000_sine));

% Load pink noise audio file


[pink_noise, sample_rate] = audioread("pink noise.wav");
pink_noise = sensitivity * pink_noise; % Calibrate pink noise

% Perform FFT on pink noise


pink_fft = fft(pink_noise);
P2_pink = abs(pink_fft/length(pink_noise));
P1_pink = P2_pink(1:length(pink_noise)/2+1);
P1_pink(2:end-1) = 2*P1_pink(2:end-1);

% Calculate Sound Pressure Level (SPL)


SPL_pink = 20*log10(P1_pink/reference_pressure);
frequency_domain_pink = sample_rate/length(pink_noise)*(0:(length(pink_noise)/
2));

% Define octave band center frequencies


center_freq_octave = [31.5 63 125 250 500 1000 2000 4000 8000 16000];

% Initialize array for net SPL values


net_SPL_pink = zeros(1,length(center_freq_octave));

% Analyze each octave band


for i = 1:length(center_freq_octave)
lower_freq = center_freq_octave(i)*2^(-1/2);
upper_freq = center_freq_octave(i)*2^(1/2);
lower_index = min(find(frequency_domain_pink>=lower_freq &
frequency_domain_pink<=upper_freq));
upper_index = max(find(frequency_domain_pink>=lower_freq &
frequency_domain_pink<=upper_freq));
subset_SPL_pink = SPL_pink(lower_index:upper_index);
subset_SPL_pink = 0.1*subset_SPL_pink;
subset_SPL_pink = 10.^subset_SPL_pink;
net_SPL_pink(i) = 10*log10(sum(subset_SPL_pink));
end

Analysis of Calibrated Sine Tone


% Calibrate sine tone
calibrated_sine_wave = sensitivity * sine_wave;

% Perform FFT on calibrated sine tone


calibrated_sine_fft = fft(calibrated_sine_wave);
P2_calib_sine = abs(calibrated_sine_fft/length(calibrated_sine_wave));
P1_calib_sine = P2_calib_sine(1:length(calibrated_sine_wave)/2+1);
P1_calib_sine(2:end-1) = 2*P1_calib_sine(2:end-1);

% Calculate Sound Pressure Level (SPL) for calibrated sine tone


SPL_calib_sine = 20*log10(P1_calib_sine/reference_pressure);
frequency_domain_calib_sine = sample_rate/length(calibrated_sine_wave)*(0:
(length(calibrated_sine_wave)/2));

2
% Initialize array for net SPL values
net_SPL_sine_calib = zeros(1,length(center_freq_octave));

% Analyze each octave band


for i = 1:length(center_freq_octave)
lower_freq = center_freq_octave(i)*2^(-1/2);
upper_freq = center_freq_octave(i)*2^(1/2);
lower_index = min(find(frequency_domain_calib_sine>=lower_freq &
frequency_domain_calib_sine<=upper_freq));
upper_index = max(find(frequency_domain_calib_sine>=lower_freq &
frequency_domain_calib_sine<=upper_freq));
subset_SPL_sine_calib = SPL_calib_sine(lower_index:upper_index);
subset_SPL_sine_calib = 0.1*subset_SPL_sine_calib;
subset_SPL_sine_calib = 10.^subset_SPL_sine_calib;
net_SPL_sine_calib(i) = 10*log10(sum(subset_SPL_sine_calib));
end

Published with MATLAB® R2023b

Vous aimerez peut-être aussi