Changeset c59e693


Ignore:
Timestamp:
Sep 5, 2015, 12:40:07 PM (9 years ago)
Author:
Paul Brossier <piem@piem.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:
4aa18e3
Parents:
0969113 (diff), f45dd12 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'develop' into accelerate

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/beattracking.c

    r0969113 rc59e693  
    136136  uint_t numelem = 4;
    137137
    138   smpl_t phase;                 // beat alignment (step - lastbeat) 
    139   smpl_t beat;                  // beat position 
     138  smpl_t phase;                 // beat alignment (step - lastbeat)
     139  smpl_t beat;                  // beat position
    140140  smpl_t bp;                    // beat period
    141141  uint_t a, b;                  // used to build shift invariant comb filterbank
     
    227227  beat = bp - phase;
    228228
    229   // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n", 
     229  // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n",
    230230  //    bp, phase, bt->lastbeat, step, winlen);
    231231
     
    319319  }
    320320
    321   //now look for step change - i.e. a difference between gp and rp that 
     321  //now look for step change - i.e. a difference between gp and rp that
    322322  // is greater than 2*constthresh - always true in first case, since gp = 0
    323323  if (counter == 0) {
     
    342342    }
    343343  } else if (counter > 0) {
    344     //if counter doesn't = 1, 
     344    //if counter doesn't = 1,
    345345    counter = counter - 1;
    346346  }
  • src/tempo/beattracking.h

    r0969113 rc59e693  
    11/*
    2   Copyright (C) 2003-2013 Matthew Davies and Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Matthew Davies and Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    3535
    3636  \example tempo/test-beattracking.c
    37  
     37
    3838*/
    3939#ifndef _AUBIO_BEATTRACKING_H
     
    5050
    5151  \param winlen length of the onset detection window
    52   \param hop_size number of onset detection samples [512] 
     52  \param hop_size number of onset detection samples [512]
    5353  \param samplerate samplerate of the input signal
    5454
     
    5757    uint_t samplerate);
    5858
    59 /** track the beat 
     59/** track the beat
    6060
    6161  \param bt beat tracking object
    6262  \param dfframes current input detection function frame, smoothed by
    63   adaptive median threshold. 
    64   \param out stored detected beat locations 
     63  adaptive median threshold.
     64  \param out stored detected beat locations
    6565
    6666*/
     
    7878smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * bt);
    7979
    80 /** get current tempo confidence 
     80/** get current tempo confidence
    8181
    8282  \param bt beat tracking object
  • src/utils/scale.h

    r0969113 rc59e693  
    2121/** \file
    2222
    23  Vector scaling function 
    24  
     23 Vector scaling function
     24
    2525 This object, inspired from the scale object in FTS, the jMax engine, scales
    2626 the values of a vector according to an affine function defined as follow:
    27  
    28  \f$ y = (x - ilow)*(ohig-olow)/(ihig-ilow) + olow \f$ 
    29  
     27
     28 \f$ y = (x - ilow)*(ohig-olow)/(ihig-ilow) + olow \f$
     29
    3030*/
    3131#ifndef _AUBIO_SCALE_H
     
    4040
    4141/** create a scale object
    42  
     42
    4343  \param flow lower value of output function
    4444  \param fhig higher value of output function
     
    4949aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig,
    5050    smpl_t ilow, smpl_t ihig);
    51 /** delete a scale object 
     51/** delete a scale object
    5252
    5353  \param s scale object as returned by new_aubio_scale
     
    7676#ifdef __cplusplus
    7777}
    78 #endif 
     78#endif
    7979
    8080#endif /* _AUBIO_SCALE_H */
Note: See TracChangeset for help on using the changeset viewer.