Changeset 787f1f3 for examples


Ignore:
Timestamp:
Sep 12, 2007, 5:55:48 PM (17 years ago)
Author:
Amaury Hazan <mahmoudax@gmail.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
95a64c7
Parents:
7a46bf6 (diff), 83d5abf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merged from laptop, change debug to AUBIO_DBG in filterbank.c

Location:
examples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r7a46bf6 r787f1f3  
    2424aubio_mfcc_t * mfcc;
    2525
    26 uint_t n_filters = 20;
     26uint_t n_filters = 40;
    2727uint_t n_coefs = 11;
    2828
     
    5353      //compute mfccs
    5454      aubio_mfcc_do(mfcc, fftgrain, mfcc_out);
    55 
     55     
     56      uint_t coef_cnt;
     57      for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
     58          outmsg("%f ",mfcc_out->data[0][coef_cnt]);
     59      }
     60      outmsg("\n");
     61     
    5662      /* end of block loop */
    5763      pos = -1; /* so it will be zero next j loop */
     
    7884        //outmsg("%f ",mfcc_out->data[0][0]);
    7985       
    80         /*for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
    81           outmsg("%f ",mfcc_out->data[0][coef_cnt]);
    82         }
    83         outmsg("\n");/*/
     86       
    8487      }
    8588}
     
    8790int main(int argc, char **argv) {
    8891  // params
    89   //uint_t n_filters = 40;
    90   //uint_t n_coefs = 15;
    91 
     92 
    9293  examples_common_init(argc,argv);
    9394  smpl_t lowfreq = 133.333f;
     
    9596  mfcc_out = new_fvec(n_coefs,channels);
    9697 
     98 
    9799  //populating the filter
    98100  mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels);
    99 
     101  dump_filterbank(mfcc);
     102 
     103 
    100104  //process
    101105  examples_common_process(aubio_process,process_print);
  • examples/plotfb.py

    r7a46bf6 r787f1f3  
    55import sys
    66
     7
    78filename=sys.argv[1]
     9
     10doLog=False
     11if len(sys.argv)>2:
     12  if sys.argv[2]=='log':
     13    doLog=True
    814
    915mat = pylab.load(filename)
     
    1521n_filters=numpy.shape(nmat)[0]
    1622for i in range(n_filters):
    17   pylab.plot(nmat[i,:])
     23  if doLog==True:
     24    pylab.semilogx(nmat[i,:])
     25  else:
     26    pylab.plot(nmat[i,:])
    1827
    1928
  • examples/utils.c

    r7a46bf6 r787f1f3  
    4040smpl_t threshold                      = 0.3;
    4141smpl_t silence                        = -90.;
    42 uint_t buffer_size                    = 512; //1024;
    43 uint_t overlap_size                   = 256; //512;
     42// uint_t buffer_size                    = 512;
     43// uint_t overlap_size                   = 256;
     44uint_t buffer_size                    = 1024;
     45uint_t overlap_size                   = 512;
    4446uint_t channels                       = 1;
    4547uint_t samplerate                     = 44100;
Note: See TracChangeset for help on using the changeset viewer.