Changeset 0683ee2


Ignore:
Timestamp:
Sep 2, 2015, 11:38:31 AM (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:
a82cedc
Parents:
4598946
Message:

src/*.h: remove trailing spaces, update copyrights

Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    2121/** @file
    2222 * Private include file
    23  * 
     23 *
    2424 * This file is for inclusion from _within_ the library only.
    2525 */
     
    3030/*********************
    3131 *
    32  * External includes 
     32 * External includes
    3333 *
    3434 */
     
    7272
    7373/****
    74  * 
     74 *
    7575 * SYSTEM INTERFACE
    7676 *
  • src/cvec.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
  • src/fmat.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2009-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2009-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    6363  \param s vector to read from
    6464  \param channel channel to read from
    65   \param position sample position to read from 
     65  \param position sample position to read from
    6666
    6767*/
     
    7070/** write sample value in a buffer
    7171
    72   \param s vector to write to 
     72  \param s vector to write to
    7373  \param data value to write in s->data[channel][position]
    74   \param channel channel to write to 
    75   \param position sample position to write to 
     74  \param channel channel to write to
     75  \param position sample position to write to
    7676
    7777*/
     
    102102smpl_t ** fmat_get_data(fmat_t *s);
    103103
    104 /** print out fmat data 
     104/** print out fmat data
    105105
    106   \param s vector to print out 
     106  \param s vector to print out
    107107
    108108*/
     
    117117void fmat_set(fmat_t *s, smpl_t val);
    118118
    119 /** set all elements to zero 
     119/** set all elements to zero
    120120
    121121  \param s vector to modify
     
    124124void fmat_zeros(fmat_t *s);
    125125
    126 /** set all elements to ones 
     126/** set all elements to ones
    127127
    128128  \param s vector to modify
     
    149149void fmat_weight(fmat_t *s, fmat_t *weight);
    150150
    151 /** make a copy of a matrix 
     151/** make a copy of a matrix
    152152
    153153  \param s source vector
  • src/fvec.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    8787
    8888  \param s vector to read from
    89   \param position sample position to read from 
     89  \param position sample position to read from
    9090
    9191*/
     
    9494/** write sample value in a buffer
    9595
    96   \param s vector to write to 
     96  \param s vector to write to
    9797  \param data value to write in s->data[position]
    98   \param position sample position to write to 
     98  \param position sample position to write to
    9999
    100100*/
     
    108108smpl_t * fvec_get_data(fvec_t *s);
    109109
    110 /** print out fvec data 
     110/** print out fvec data
    111111
    112   \param s vector to print out 
     112  \param s vector to print out
    113113
    114114*/
     
    123123void fvec_set_all (fvec_t *s, smpl_t val);
    124124
    125 /** set all elements to zero 
     125/** set all elements to zero
    126126
    127127  \param s vector to modify
     
    130130void fvec_zeros(fvec_t *s);
    131131
    132 /** set all elements to ones 
     132/** set all elements to ones
    133133
    134134  \param s vector to modify
  • src/lvec.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    6262
    6363  \param s vector to read from
    64   \param position sample position to read from 
     64  \param position sample position to read from
    6565
    6666*/
     
    6969/** write sample value in a buffer
    7070
    71   \param s vector to write to 
     71  \param s vector to write to
    7272  \param data value to write in s->data[position]
    73   \param position sample position to write to 
     73  \param position sample position to write to
    7474
    7575*/
     
    8383lsmp_t * lvec_get_data(lvec_t *s);
    8484
    85 /** print out lvec data 
     85/** print out lvec data
    8686
    87   \param s vector to print out 
     87  \param s vector to print out
    8888
    8989*/
     
    9898void lvec_set_all(lvec_t *s, smpl_t val);
    9999
    100 /** set all elements to zero 
     100/** set all elements to zero
    101101
    102102  \param s vector to modify
     
    105105void lvec_zeros(lvec_t *s);
    106106
    107 /** set all elements to ones 
     107/** set all elements to ones
    108108
    109109  \param s vector to modify
  • src/mathutils.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2014 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    8383
    8484/** swap the left and right halves of a vector
    85  
     85
    8686  This function swaps the left part of the signal with the right part of the
    8787signal. Therefore
    8888
    8989  \f$ a[0], a[1], ..., a[\frac{N}{2}], a[\frac{N}{2}+1], ..., a[N-1], a[N] \f$
    90  
     90
    9191  becomes
    92  
     92
    9393  \f$ a[\frac{N}{2}+1], ..., a[N-1], a[N], a[0], a[1], ..., a[\frac{N}{2}] \f$
    9494
     
    9696can be used before computing the FFT to simplify the phase relationship of the
    9797resulting spectrum. See Amalia de Götzen's paper referred to above.
    98  
     98
    9999*/
    100100void fvec_shift (fvec_t * v);
     
    112112
    113113  The High Frequency Content is defined as \f$ \sum_0^{N-1} (k+1) v[k] \f$.
    114  
    115   \param v vector to get the energy from 
     114
     115  \param v vector to get the energy from
    116116
    117117  \return the HFC of v
    118  
     118
    119119*/
    120120smpl_t fvec_local_hfc (fvec_t * v);
    121121
    122 /** computes the p-norm of a vector 
    123  
     122/** computes the p-norm of a vector
     123
    124124  Computes the p-norm of a vector for \f$ p = \alpha \f$
    125125
    126126  \f$ L^p = ||x||_p = (|x_1|^p + |x_2|^p + ... + |x_n|^p ) ^ \frac{1}{p} \f$
    127  
     127
    128128  If p = 1, the result is the Manhattan distance.
    129129
     
    134134
    135135  References:
    136  
     136
    137137    - <a href="http://en.wikipedia.org/wiki/Lp_space">\f$L^p\f$ space</a> on
    138138  Wikipedia
     
    142142
    143143  \return the p-norm of v
    144  
     144
    145145*/
    146146smpl_t fvec_alpha_norm (fvec_t * v, smpl_t p);
     
    148148/**  alpha normalisation
    149149
    150   This function divides all elements of a vector by the p-norm as computed by 
     150  This function divides all elements of a vector by the p-norm as computed by
    151151fvec_alpha_norm().
    152152
     
    166166
    167167/** remove the minimum value of the vector to each elements
    168  
     168
    169169  \param v vector to remove minimum from
    170170
     
    177177position of a vector, taking the median among post elements before and up to
    178178pre elements after pos.
    179  
     179
    180180  \param v input vector
    181181  \param tmp temporary vector of length post+1+pre
    182   \param post length of causal part to take before pos 
     182  \param post length of causal part to take before pos
    183183  \param pre length of anti-causal part to take after pos
    184   \param pos index to compute threshold for 
    185 
    186   \return moving median threshold value 
     184  \param pos index to compute threshold for
     185
     186  \return moving median threshold value
    187187
    188188*/
     
    197197  \param v input vector
    198198  \param tmp temporary vector of length post+1+pre
    199   \param post length of causal part to take before pos 
     199  \param post length of causal part to take before pos
    200200  \param pre length of anti-causal part to take after pos
    201201
     
    203203void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre);
    204204
    205 /** returns the median of a vector 
     205/** returns the median of a vector
    206206
    207207  The QuickSelect routine is based on the algorithm described in "Numerical
     
    216216
    217217  \return the median of v
    218  
     218
    219219*/
    220220smpl_t fvec_median (fvec_t * v);
     
    249249
    250250/** Quadratic interpolation using Lagrange polynomial.
    251  
     251
    252252  Inspired from ``Comparison of interpolation algorithms in real-time sound
    253 processing'', Vladimir Arnost, 
    254  
    255   \param s0,s1,s2 are 3 consecutive samples of a curve 
     253processing'', Vladimir Arnost,
     254
     255  \param s0,s1,s2 are 3 consecutive samples of a curve
    256256  \param pf is the floating point index [0;2]
    257  
     257
    258258  \return \f$ s0 + (pf/2.)*((pf-3.)*s0-2.*(pf-2.)*s1+(pf-1.)*s2); \f$
    259259
  • src/musicutils.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    3030#endif
    3131
    32 /** create window 
     32/** create window
    3333
    3434  \param window_type type of the window to create
    3535  \param size length of the window to create (see fvec_set_window())
    36  
     36
    3737*/
    3838fvec_t *new_aubio_window (char_t * window_type, uint_t size);
     
    5050
    5151  References:
    52    
     52
    5353    - <a href="http://en.wikipedia.org/wiki/Window_function">Window
    5454function</a> on Wikipedia
     
    6969
    7070  \param phase unwrapped phase to map to the unit circle
    71  
     71
    7272  \return equivalent phase wrapped to the unit circle
    7373
     
    9494
    9595/** clean up cached memory at the end of program
    96  
     96
    9797  This function should be used at the end of programs to purge all cached
    9898  memory. So far it is only useful to clean FFTW's cache.
     
    138138
    139139/** check if buffer level in dB SPL is under a given threshold
    140  
     140
    141141  \param v vector to get level from
    142142  \param threshold threshold in dB SPL
  • src/types.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    2323
    2424/** \file
    25  
     25
    2626  Definition of data types used in aubio
    27  
     27
    2828*/
    2929
  • src/vecutils.h

    r4598946 r0683ee2  
    11/*
    2   Copyright (C) 2009-2013 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2009-2015 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
Note: See TracChangeset for help on using the changeset viewer.