Skip to content
Snippets Groups Projects
Select Git revision
  • 85c451558ed2a9a5a56e268549065c587abf1bfb
  • master default protected
  • py
  • rmevec
  • tffm
  • approx
  • v0.1.5
  • v0.1.4
  • v0.1.3
9 results

get_win_params.m

Blame
  • user avatar
    Marina Kreme authored
    85c45155
    History
    get_win_params.m 440 B
    function [win_type, win_dur,win_len, hop_ratio, nbins_ratio] =  get_win_params(win_choice)
    
    
    win_choice_split = split(win_choice);
    
    win_type = win_choice_split{1};
    win_len_str = win_choice_split{2};
    
    win_len = str2double(win_len_str);
    
    
    win_dur = win_len/ 8000;
    
    
    switch win_type
        
        case  'gauss'
            hop_ratio = 1 / 4;
            nbins_ratio = 4;
        case 'hann'
            hop_ratio = 1 / 8;
            nbins_ratio = 2;
            
    end
    
    end