Changeset e0a9fd2


Ignore:
Timestamp:
Dec 11, 2016, 11:21:55 PM (7 years ago)
Author:
Paul Brossier <piem@piem.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, sampler, yinfft+
Children:
671eae1
Parents:
e15d7d0
Message:

examples/aubioonset.c: use seconds for minioi

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/aubioonset.txt

    re15d7d0 re0a9fd2  
    5353  the number of incorrect detections. Defaults to 0.3.
    5454
    55   -M, --minioi value  Set the minimum inter-onset interval, in millisecond,
    56   the shortest interval between two consecutive onsets. Defaults to 12.
     55  -M, --minioi value  Set the minimum inter-onset interval, in seconds, the
     56  shortest interval between two consecutive onsets. Defaults to 0.020
    5757
    5858  -s, --silence sil  Set the silence threshold, in dB, under which the onset
  • examples/aubioonset.c

    re15d7d0 re0a9fd2  
    7676    aubio_onset_set_silence (o, silence_threshold);
    7777  if (onset_minioi != 0.)
    78     aubio_onset_set_minioi_ms (o, onset_minioi);
     78    aubio_onset_set_minioi_s (o, onset_minioi);
    7979
    8080  onset = new_fvec (1);
  • examples/parse_args.h

    re15d7d0 re0a9fd2  
    9494      "                 a value between 0.1 (more detections) and 1 (less); default=0.3\n"
    9595      "       -M      --minioi           set minimum inter-onset interval\n"
    96       "                 a value in millisecond; default=12.\n"
     96      "                 a value in second; default=0.012\n"
    9797#endif /* PROG_HAS_ONSET */
    9898#ifdef PROG_HAS_PITCH
     
    232232        onset_threshold = (smpl_t) atof (optarg);
    233233        break;
    234       case 'M':                /* threshold value for onset */
     234      case 'M':                /* minimum inter-onset-interval */
    235235        onset_minioi = (smpl_t) atof (optarg);
    236236        break;
Note: See TracChangeset for help on using the changeset viewer.