Changeset f382ac6
- Timestamp:
- May 23, 2005, 6:32:42 PM (20 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:
- 0c20582
- Parents:
- ee0cc27b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
ree0cc27b rf382ac6 201 201 202 202 203 aubio_file_t * onsetfile = new_file_ro(onset_filename);203 aubio_file_t * onsetfile; 204 204 /* parse command line arguments */ 205 205 parse_args(argc, argv); 206 207 woodblock = new_fvec(buffer_size,1); 208 if (output_filename || usejack) { 209 (onsetfile = new_file_ro(onset_filename)) || 210 (onsetfile = new_file_ro("sounds/woodblock.aiff")) || 211 (onsetfile = new_file_ro("../sounds/woodblock.aiff")); 212 /* read the output sound once */ 213 file_read(onsetfile, overlap_size, woodblock); 214 } 206 215 207 216 if(!usejack) … … 218 227 ibuf = new_fvec(overlap_size, channels); 219 228 obuf = new_fvec(overlap_size, channels); 220 woodblock = new_fvec(buffer_size,1);221 229 fftgrain = new_cvec(buffer_size, channels); 222 230 … … 230 238 } 231 239 } 232 /* read the output sound once */233 file_read(onsetfile, overlap_size, woodblock);234 240 /* phase vocoder */ 235 241 pv = new_aubio_pvoc(buffer_size, overlap_size, channels); -
ext/sndfileio.c
ree0cc27b rf382ac6 45 45 46 46 if (! (f->handle = sf_open (outputname, SFM_READ, &sfinfo))) { 47 AUBIO_ERR(" Notable to open input file %s.\n", outputname);47 AUBIO_ERR("Unable to open input file %s.\n", outputname); 48 48 AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */ 49 AUBIO_QUIT(AUBIO_FAIL);49 return NULL; 50 50 } 51 51 52 52 if (sfinfo.channels > MAX_CHANNELS) { 53 53 AUBIO_ERR("Not able to process more than %d channels\n", MAX_CHANNELS); 54 AUBIO_QUIT(AUBIO_FAIL);54 return NULL; 55 55 } 56 56
Note: See TracChangeset
for help on using the changeset viewer.