Changeset 0683ee2
- Timestamp:
- Sep 2, 2015, 11:38:31 AM (9 years ago)
- 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
- Location:
- src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio_priv.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-20 09Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 21 21 /** @file 22 22 * Private include file 23 * 23 * 24 24 * This file is for inclusion from _within_ the library only. 25 25 */ … … 30 30 /********************* 31 31 * 32 * External includes 32 * External includes 33 33 * 34 34 */ … … 72 72 73 73 /**** 74 * 74 * 75 75 * SYSTEM INTERFACE 76 76 * -
src/cvec.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. -
src/fmat.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2009-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2009-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 63 63 \param s vector to read from 64 64 \param channel channel to read from 65 \param position sample position to read from 65 \param position sample position to read from 66 66 67 67 */ … … 70 70 /** write sample value in a buffer 71 71 72 \param s vector to write to 72 \param s vector to write to 73 73 \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 76 76 77 77 */ … … 102 102 smpl_t ** fmat_get_data(fmat_t *s); 103 103 104 /** print out fmat data 104 /** print out fmat data 105 105 106 \param s vector to print out 106 \param s vector to print out 107 107 108 108 */ … … 117 117 void fmat_set(fmat_t *s, smpl_t val); 118 118 119 /** set all elements to zero 119 /** set all elements to zero 120 120 121 121 \param s vector to modify … … 124 124 void fmat_zeros(fmat_t *s); 125 125 126 /** set all elements to ones 126 /** set all elements to ones 127 127 128 128 \param s vector to modify … … 149 149 void fmat_weight(fmat_t *s, fmat_t *weight); 150 150 151 /** make a copy of a matrix 151 /** make a copy of a matrix 152 152 153 153 \param s source vector -
src/fvec.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 87 87 88 88 \param s vector to read from 89 \param position sample position to read from 89 \param position sample position to read from 90 90 91 91 */ … … 94 94 /** write sample value in a buffer 95 95 96 \param s vector to write to 96 \param s vector to write to 97 97 \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 99 99 100 100 */ … … 108 108 smpl_t * fvec_get_data(fvec_t *s); 109 109 110 /** print out fvec data 110 /** print out fvec data 111 111 112 \param s vector to print out 112 \param s vector to print out 113 113 114 114 */ … … 123 123 void fvec_set_all (fvec_t *s, smpl_t val); 124 124 125 /** set all elements to zero 125 /** set all elements to zero 126 126 127 127 \param s vector to modify … … 130 130 void fvec_zeros(fvec_t *s); 131 131 132 /** set all elements to ones 132 /** set all elements to ones 133 133 134 134 \param s vector to modify -
src/lvec.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 62 62 63 63 \param s vector to read from 64 \param position sample position to read from 64 \param position sample position to read from 65 65 66 66 */ … … 69 69 /** write sample value in a buffer 70 70 71 \param s vector to write to 71 \param s vector to write to 72 72 \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 74 74 75 75 */ … … 83 83 lsmp_t * lvec_get_data(lvec_t *s); 84 84 85 /** print out lvec data 85 /** print out lvec data 86 86 87 \param s vector to print out 87 \param s vector to print out 88 88 89 89 */ … … 98 98 void lvec_set_all(lvec_t *s, smpl_t val); 99 99 100 /** set all elements to zero 100 /** set all elements to zero 101 101 102 102 \param s vector to modify … … 105 105 void lvec_zeros(lvec_t *s); 106 106 107 /** set all elements to ones 107 /** set all elements to ones 108 108 109 109 \param s vector to modify -
src/mathutils.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-201 4Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 83 83 84 84 /** swap the left and right halves of a vector 85 85 86 86 This function swaps the left part of the signal with the right part of the 87 87 signal. Therefore 88 88 89 89 \f$ a[0], a[1], ..., a[\frac{N}{2}], a[\frac{N}{2}+1], ..., a[N-1], a[N] \f$ 90 90 91 91 becomes 92 92 93 93 \f$ a[\frac{N}{2}+1], ..., a[N-1], a[N], a[0], a[1], ..., a[\frac{N}{2}] \f$ 94 94 … … 96 96 can be used before computing the FFT to simplify the phase relationship of the 97 97 resulting spectrum. See Amalia de Götzen's paper referred to above. 98 98 99 99 */ 100 100 void fvec_shift (fvec_t * v); … … 112 112 113 113 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 116 116 117 117 \return the HFC of v 118 118 119 119 */ 120 120 smpl_t fvec_local_hfc (fvec_t * v); 121 121 122 /** computes the p-norm of a vector 123 122 /** computes the p-norm of a vector 123 124 124 Computes the p-norm of a vector for \f$ p = \alpha \f$ 125 125 126 126 \f$ L^p = ||x||_p = (|x_1|^p + |x_2|^p + ... + |x_n|^p ) ^ \frac{1}{p} \f$ 127 127 128 128 If p = 1, the result is the Manhattan distance. 129 129 … … 134 134 135 135 References: 136 136 137 137 - <a href="http://en.wikipedia.org/wiki/Lp_space">\f$L^p\f$ space</a> on 138 138 Wikipedia … … 142 142 143 143 \return the p-norm of v 144 144 145 145 */ 146 146 smpl_t fvec_alpha_norm (fvec_t * v, smpl_t p); … … 148 148 /** alpha normalisation 149 149 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 151 151 fvec_alpha_norm(). 152 152 … … 166 166 167 167 /** remove the minimum value of the vector to each elements 168 168 169 169 \param v vector to remove minimum from 170 170 … … 177 177 position of a vector, taking the median among post elements before and up to 178 178 pre elements after pos. 179 179 180 180 \param v input vector 181 181 \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 183 183 \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 187 187 188 188 */ … … 197 197 \param v input vector 198 198 \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 200 200 \param pre length of anti-causal part to take after pos 201 201 … … 203 203 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre); 204 204 205 /** returns the median of a vector 205 /** returns the median of a vector 206 206 207 207 The QuickSelect routine is based on the algorithm described in "Numerical … … 216 216 217 217 \return the median of v 218 218 219 219 */ 220 220 smpl_t fvec_median (fvec_t * v); … … 249 249 250 250 /** Quadratic interpolation using Lagrange polynomial. 251 251 252 252 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 253 processing'', Vladimir Arnost, 254 255 \param s0,s1,s2 are 3 consecutive samples of a curve 256 256 \param pf is the floating point index [0;2] 257 257 258 258 \return \f$ s0 + (pf/2.)*((pf-3.)*s0-2.*(pf-2.)*s1+(pf-1.)*s2); \f$ 259 259 -
src/musicutils.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 30 30 #endif 31 31 32 /** create window 32 /** create window 33 33 34 34 \param window_type type of the window to create 35 35 \param size length of the window to create (see fvec_set_window()) 36 36 37 37 */ 38 38 fvec_t *new_aubio_window (char_t * window_type, uint_t size); … … 50 50 51 51 References: 52 52 53 53 - <a href="http://en.wikipedia.org/wiki/Window_function">Window 54 54 function</a> on Wikipedia … … 69 69 70 70 \param phase unwrapped phase to map to the unit circle 71 71 72 72 \return equivalent phase wrapped to the unit circle 73 73 … … 94 94 95 95 /** clean up cached memory at the end of program 96 96 97 97 This function should be used at the end of programs to purge all cached 98 98 memory. So far it is only useful to clean FFTW's cache. … … 138 138 139 139 /** check if buffer level in dB SPL is under a given threshold 140 140 141 141 \param v vector to get level from 142 142 \param threshold threshold in dB SPL -
src/types.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2003-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 23 23 24 24 /** \file 25 25 26 26 Definition of data types used in aubio 27 27 28 28 */ 29 29 -
src/vecutils.h
r4598946 r0683ee2 1 1 /* 2 Copyright (C) 2009-201 3Paul Brossier <piem@aubio.org>2 Copyright (C) 2009-2015 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio.
Note: See TracChangeset
for help on using the changeset viewer.