Changeset f382ac6 for examples


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

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.