Changeset f382ac6


Ignore:
Timestamp:
May 23, 2005, 6:32:42 PM (19 years ago)
Author:
Paul Brossier <piem@altern.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:
0c20582
Parents:
ee0cc27b
Message:

start fixing woodblock filepaty
start fixing woodblock filepaty

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    ree0cc27b rf382ac6  
    201201
    202202
    203   aubio_file_t * onsetfile = new_file_ro(onset_filename);
     203  aubio_file_t * onsetfile;
    204204  /* parse command line arguments */
    205205  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  }
    206215
    207216  if(!usejack)
     
    218227  ibuf      = new_fvec(overlap_size, channels);
    219228  obuf      = new_fvec(overlap_size, channels);
    220   woodblock = new_fvec(buffer_size,1);
    221229  fftgrain  = new_cvec(buffer_size, channels);
    222230
     
    230238  }
    231239  }
    232   /* read the output sound once */
    233   file_read(onsetfile, overlap_size, woodblock);
    234240  /* phase vocoder */
    235241  pv = new_aubio_pvoc(buffer_size, overlap_size, channels);
  • ext/sndfileio.c

    ree0cc27b rf382ac6  
    4545
    4646        if (! (f->handle = sf_open (outputname, SFM_READ, &sfinfo))) {
    47                 AUBIO_ERR("Not able to open input file %s.\n", outputname);
     47                AUBIO_ERR("Unable to open input file %s.\n", outputname);
    4848                AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */
    49                 AUBIO_QUIT(AUBIO_FAIL);
     49                return NULL;
    5050        }       
    5151
    5252        if (sfinfo.channels > MAX_CHANNELS) {
    5353                AUBIO_ERR("Not able to process more than %d channels\n", MAX_CHANNELS);
    54                 AUBIO_QUIT(AUBIO_FAIL);
     54                return NULL;
    5555        }
    5656
Note: See TracChangeset for help on using the changeset viewer.