No BSD License
-
f_DECODER (aCoeff, pitch_plot...
DECODER PORTION
-
f_ENCODER(x, fs, M);
ENCODER PORTION
-
f_GAIN (e, voiced_b, pitch_pl...
function for calc gain per frame
-
f_SYN_UV (aCoeff, gain, frame...
a function of f_DEOCDER
-
f_SYN_V (aCoeff, gain, frame_...
a function of f_DEOCDER
-
f_VOICED(x, fs, fsize);
function_main of voiced/unvoiced detection
-
func_lev_durb (y, M);
function of levinsonDurbin__Hamza
-
func_pitch (y,fs)
-
func_vd_msf (y)
function of "voicingDetector_magnitude_sum_function__hamza"
-
func_vd_zc (y)
function of "voicingDetector_zero_crossing_detector__hamza"
-
MAIN.m
-
PG_vs_M_graph_for_lev_durb.m
-
View all files
|
|
| f_GAIN (e, voiced_b, pitch_plot_b); %gain of 1 (current) frame is returned
|
%function for calc gain per frame
function [gain_b, power_b] = f_GAIN (e, voiced_b, pitch_plot_b); %gain of 1 (current) frame is returned
%pitch_plot_b = pitch period of frame
%starting at data point "b"
%GAIN
if voiced_b == 0, %if frame starting at data point "b" is unvoiced
denom = length(e);
power_b = sum(e (1:denom) .^2) ./ denom;
gain_b = sqrt( power_b );
else %if frame starting at data point "b" is voiced
denom = ( floor( length(e)./pitch_plot_b ) .* pitch_plot_b ); %see page 270 of main book
power_b = sum( e (1:denom) .^2 ) ./ denom;
gain_b = sqrt( pitch_plot_b .* power_b );
end
power_b;
gain_b;
|
|
Contact us at files@mathworks.com