Changes in / [55012c4:614963a]


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/demo_filterbank_slaney.py

    r55012c4 r614963a  
    1212from pylab import loglog, title, show, xlim, ylim, xlabel, ylabel
    1313xlim([0,samplerate / 2])
    14 print f.get_coeffs().shape
    1514times = vstack([arange(win_s / 2 + 1) * samplerate / win_s] * 40)
    16 print times.shape
    1715loglog(times.T, f.get_coeffs().T, '.-')
    1816title('Mel frequency bands coefficients')
    1917xlim([100, 7500])
    2018ylim([1.0e-3, 2.0e-2])
    21 xlabel('frequency (Hz)')
    22 ylabel('amplitude')
     19xlabel('Frequency (Hz)')
     20ylabel('Amplitude')
    2321show()
  • interfaces/python/demo_filterbank_triangle_bands.py

    r55012c4 r614963a  
    2121xlim([50, samplerate/2])
    2222ylim([1.0e-6, 2.0e-2])
    23 ylabel('amplitude')
     23ylabel('Amplitude')
    2424
    2525## build a new filterbank
     
    4242xlim([50, samplerate/2])
    4343ylim([1.0e-6, 2.0e-2])
    44 xlabel('frequency (Hz)')
    45 ylabel('amplitude')
     44xlabel('Frequency (Hz)')
     45ylabel('Amplitude')
    4646
    4747show()
  • src/tempo/beattracking.c

    r55012c4 r614963a  
    160160  for (i = 1; i < laglen - 1; i++) {
    161161    for (a = 1; a <= numelem; a++) {
    162       for (b = (1 - a); b < a; b++) {
     162      for (b = (1 - a); b < (sint_t)a; b++) {
    163163        bt->acfout->data[i] += bt->acf->data[a * (i + 1) + b - 1]
    164164            * 1. / (2. * a - 1.);
     
    300300    for (i = 1; i < laglen - 1; i++) {
    301301      for (a = 1; a <= bt->timesig; a++) {
    302         for (b = (1 - a); b < a; b++) {
     302        for (b = (1 - a); b < (sint_t)a; b++) {
    303303          acfout->data[i] += acf->data[a * (i + 1) + b - 1];
    304304        }
Note: See TracChangeset for help on using the changeset viewer.