bleeck@4: %%%%%%%%%%%%% bleeck@4: % usermodules bleeck@4: pitchstrength.generatingfunction='genpitchstrength'; bleeck@4: pitchstrength.displayname='Pitch strength'; bleeck@4: pitchstrength.displayfunction='displaypitchstrength'; bleeck@4: pitchstrength.revision='$Revision: 1.4 $'; bleeck@4: bleeck@4: bleeck@4: % The frequency in the temporal profile, that we are interested in bleeck@4: pitchstrength.target_frequency=0; % if zero, then look for the highest pitch strength on your own! bleeck@4: % if we have a target frequency, then the found frequency can deviate by so much: bleeck@4: pitchstrength.allowed_frequency_deviation=1.12; %two halftones bleeck@4: bleeck@4: % how long the temporal profiles are averaged to get the peak bleeck@4: pitchstrength.tip_average_time=0.05; % in sec (50 ms) bleeck@4: pitchstrength.low_pass_frequency=1000; % Hz is used in the logarithmic(!) tip for averaging bleeck@4: bleeck@4: bleeck@4: % Parameters for the different ways to define the pitch strength bleeck@4: % Parameters for the qualitly measurement (hight/width) bleeck@4: pitchstrength.height_width_ratio=0.3; % at witch point of the height, the width is measured bleeck@4: bleeck@4: bleeck@4: % parameters for the frequency profile bleeck@4: pitchstrength.start_frequency_integration=0.2; % start the ratio calculation at a region at 20% of the maximum bleeck@4: pitchstrength.stop_frequency_integration=0.8; % stop the ratio calculation at 80% below the maximum bleeck@4: