Changeset 40acfbc
- Timestamp:
- Oct 21, 2009, 3:08:24 PM (15 years ago)
- 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:
- 1f8e522
- Parents:
- 1c190d5
- Location:
- examples
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r1c190d5 r40acfbc 148 148 o = new_aubio_onset (onset_mode, buffer_size, overlap_size, channels, 149 149 samplerate); 150 if (threshold != 0.) aubio_onset_set_threshold (o, threshold); 150 151 onset = new_fvec (1, channels); 151 152 -
examples/aubioonset.c
r1c190d5 r40acfbc 79 79 o = new_aubio_onset (onset_mode, buffer_size, overlap_size, channels, 80 80 samplerate); 81 if (threshold != 0.) aubio_onset_set_threshold (o, threshold); 81 82 onset = new_fvec (1, channels); 82 83 -
examples/aubiotrack.c
r1c190d5 r40acfbc 84 84 tempo_out = new_fvec(2,channels); 85 85 bt = new_aubio_tempo(onset_mode,buffer_size,overlap_size,channels, samplerate); 86 if (threshold != 0.) aubio_tempo_set_threshold (bt, threshold); 86 87 87 88 examples_common_process(aubio_process,process_print); -
examples/utils.c
r1c190d5 r40acfbc 57 57 /* energy,specdiff,hfc,complexdomain,phase */ 58 58 char_t * onset_mode = "default"; 59 smpl_t threshold = 0. 3;59 smpl_t threshold = 0.0; // leave unset, only set as asked 60 60 smpl_t silence = -90.; 61 61 uint_t buffer_size = 512; //1024; … … 149 149 onset_mode = optarg; 150 150 break; 151 case 's': /* thresholdvalue for onset */151 case 's': /* silence value for onset */ 152 152 silence = (smpl_t) atof (optarg); 153 153 break; 154 154 case 't': /* threshold value for onset */ 155 155 threshold = (smpl_t) atof (optarg); 156 /*157 if (!isfinite(threshold)) {158 debug("could not get threshold.\n");159 abort();160 }161 */162 156 break; 163 157 case 'p':
Note: See TracChangeset
for help on using the changeset viewer.