Changeset 660cad22


Ignore:
Timestamp:
Jul 6, 2006, 6:38:00 PM (15 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
92eea84
Parents:
55c6da4
Message:

rename threshold2 to silence
rename threshold2 to silence

Location:
examples
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    r55c6da4 r660cad22  
    5252
    5353      /* curlevel is negatif or 1 if silence */
    54       curlevel = aubio_level_detection(ibuf, threshold2);
     54      curlevel = aubio_level_detection(ibuf, silence);
    5555      if (isonset) {
    5656              /* test for silence */
  • examples/aubioonset.c

    r55c6da4 r660cad22  
    4747      if (isonset) {
    4848        /* test for silence */
    49         if (aubio_silence_detection(ibuf, threshold2)==1)
     49        if (aubio_silence_detection(ibuf, silence)==1)
    5050          isonset=0;
    5151        else
  • examples/aubioquiet.c

    r55c6da4 r660cad22  
    3939    if (pos == overlap_size-1) {         
    4040      /* test for silence */
    41       if (aubio_silence_detection(ibuf, threshold2)==1) {
     41      if (aubio_silence_detection(ibuf, silence)==1) {
    4242        if (wassilence==1) issilence = 1;
    4343        else issilence = 2;
  • examples/aubiotrack.c

    r55c6da4 r660cad22  
    8585                      //60.*44100./overlap_size/abs(btoutput[2]-btoutput[1]));
    8686                      /* test for silence */
    87                       if (aubio_silence_detection(ibuf, threshold2)==1) {
     87                      if (aubio_silence_detection(ibuf, silence)==1) {
    8888                              isonset  = 0;
    8989                              istactus = 0;
  • examples/utils.c

    r55c6da4 r660cad22  
    3939aubio_onsetdetection_type type_onset2 = aubio_onset_complex;
    4040smpl_t threshold                      = 0.3;
    41 smpl_t threshold2                     = -90.;
     41smpl_t silence                        = -90.;
    4242uint_t buffer_size                    = 512; //1024;
    4343uint_t overlap_size                   = 256; //512;
     
    178178                                break;
    179179                        case 's':   /* threshold value for onset */
    180                                 threshold2 = (smpl_t)atof(optarg);
     180                                silence = (smpl_t)atof(optarg);
    181181                                break;
    182182                        case 't':   /* threshold value for onset */
  • examples/utils.h

    r55c6da4 r660cad22  
    7676extern aubio_onsetdetection_type type_onset2;
    7777extern smpl_t threshold;
    78 extern smpl_t threshold2;
     78extern smpl_t silence;
    7979extern uint_t buffer_size;
    8080extern uint_t overlap_size;
Note: See TracChangeset for help on using the changeset viewer.