Changeset 1f40359


Ignore:
Timestamp:
Mar 30, 2005, 4:53:46 AM (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:
3050cb8
Parents:
a4b089c
Message:

fix jack playing with short buffer (move pos)

(aubionotes.c and aubioonset.c)
added samplerate query to aubioonset.c

Location:
examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    ra4b089c r1f40359  
    7272aubio_midi_driver_t * mdriver;
    7373aubio_midi_event_t  * event;
     74
     75unsigned int pos = 0; /*frames%dspblocksize*/
    7476
    7577void send_noteon(aubio_midi_driver_t * d, int pitch, int velo);
     
    103105  unsigned int i;       /*channels*/
    104106  unsigned int j;       /*frames*/
    105   unsigned int pos = 0; /*frames%dspblocksize*/
    106107  for (j=0;j<nframes;j++) {
    107108    if(usejack) {
  • examples/aubioonset.c

    ra4b089c r1f40359  
    6060int isonset = 0;
    6161aubio_pickpeak_t * parms;
     62unsigned int pos = 0; /*frames%dspblocksize*/
    6263
    6364int aubio_process(float **input, float **output, int nframes) {
    6465  unsigned int i;       /*channels*/
    6566  unsigned int j;       /*frames*/
    66   unsigned int pos = 0; /*frames%dspblocksize*/
    6767  for (j=0;j<nframes;j++) {
    6868    if(usejack) {
     
    120120    if (verbose) file_info(file);
    121121    channels = aubio_file_channels(file);
     122    samplerate = aubio_file_samplerate(file);
    122123    if (output_filename != NULL)
    123124      fileout = new_file_wo(file, output_filename);
Note: See TracChangeset for help on using the changeset viewer.