Mercurial > hg > aimmat
annotate aim-mat/modules/usermodule/pitchstrength/parameters.m @ 4:537f939baef0 tip
various bug fixes and changed copyright message
author | Stefan Bleeck <bleeck@gmail.com> |
---|---|
date | Tue, 16 Aug 2011 14:37:17 +0100 |
parents | |
children |
rev | line source |
---|---|
bleeck@4 | 1 %%%%%%%%%%%%% |
bleeck@4 | 2 % usermodules |
bleeck@4 | 3 pitchstrength.generatingfunction='genpitchstrength'; |
bleeck@4 | 4 pitchstrength.displayname='Pitch strength'; |
bleeck@4 | 5 pitchstrength.displayfunction='displaypitchstrength'; |
bleeck@4 | 6 pitchstrength.revision='$Revision: 1.4 $'; |
bleeck@4 | 7 |
bleeck@4 | 8 |
bleeck@4 | 9 % The frequency in the temporal profile, that we are interested in |
bleeck@4 | 10 pitchstrength.target_frequency=0; % if zero, then look for the highest pitch strength on your own! |
bleeck@4 | 11 % if we have a target frequency, then the found frequency can deviate by so much: |
bleeck@4 | 12 pitchstrength.allowed_frequency_deviation=1.12; %two halftones |
bleeck@4 | 13 |
bleeck@4 | 14 % how long the temporal profiles are averaged to get the peak |
bleeck@4 | 15 pitchstrength.tip_average_time=0.05; % in sec (50 ms) |
bleeck@4 | 16 pitchstrength.low_pass_frequency=1000; % Hz is used in the logarithmic(!) tip for averaging |
bleeck@4 | 17 |
bleeck@4 | 18 |
bleeck@4 | 19 % Parameters for the different ways to define the pitch strength |
bleeck@4 | 20 % Parameters for the qualitly measurement (hight/width) |
bleeck@4 | 21 pitchstrength.height_width_ratio=0.3; % at witch point of the height, the width is measured |
bleeck@4 | 22 |
bleeck@4 | 23 |
bleeck@4 | 24 % parameters for the frequency profile |
bleeck@4 | 25 pitchstrength.start_frequency_integration=0.2; % start the ratio calculation at a region at 20% of the maximum |
bleeck@4 | 26 pitchstrength.stop_frequency_integration=0.8; % stop the ratio calculation at 80% below the maximum |
bleeck@4 | 27 |