- Timestamp:
- Sep 29, 2009, 7:58:03 AM (15 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:
- a253fd4
- Parents:
- a4364b8
- Location:
- src
- Files:
-
- 2 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchdetection.c
ra4364b8 rc159aeb 24 24 #include "mathutils.h" 25 25 #include "temporal/filter.h" 26 #include "temporal/c design.h"26 #include "temporal/c_weighting.h" 27 27 #include "pitch/pitchmcomb.h" 28 28 #include "pitch/pitchyin.h" … … 105 105 p->fftgrain = new_cvec(bufsize, channels); 106 106 p->mcomb = new_aubio_pitchmcomb(bufsize,hopsize,channels,samplerate); 107 p->filter = new_aubio_filter_c dsgn(samplerate, channels);107 p->filter = new_aubio_filter_c_weighting (samplerate, channels); 108 108 p->callback = aubio_pitchdetection_mcomb; 109 109 break; -
src/temporal/a_weighting.c
ra4364b8 rc159aeb 25 25 #include "lvec.h" 26 26 #include "temporal/filter.h" 27 #include "temporal/a design.h"27 #include "temporal/a_weighting.h" 28 28 29 void aubio_filter_set_a dsgn(aubio_filter_t * f) {29 void aubio_filter_set_a_weighting (aubio_filter_t * f) { 30 30 31 31 uint_t samplerate = aubio_filter_get_samplerate (f); … … 153 153 } 154 154 155 aubio_filter_t * new_aubio_filter_a dsgn(uint_t samplerate, uint_t channels) {155 aubio_filter_t * new_aubio_filter_a_weighting (uint_t samplerate, uint_t channels) { 156 156 aubio_filter_t * f = new_aubio_filter (samplerate, 7, channels); 157 aubio_filter_set_a dsgn(f);157 aubio_filter_set_a_weighting (f); 158 158 return f; 159 159 } -
src/temporal/a_weighting.h
ra4364b8 rc159aeb 64 64 65 65 */ 66 aubio_filter_t * new_aubio_filter_a dsgn(uint_t samplerate, uint_t channels);66 aubio_filter_t * new_aubio_filter_a_weighting (uint_t samplerate, uint_t channels); 67 67 68 68 /** set feedback and feedforward coefficients of a A-weighting filter … … 71 71 72 72 */ 73 void aubio_filter_set_a dsgn(aubio_filter_t *f);73 void aubio_filter_set_a_weighting (aubio_filter_t *f); 74 74 75 75 #ifdef __cplusplus -
src/temporal/c_weighting.c
ra4364b8 rc159aeb 24 24 #include "lvec.h" 25 25 #include "temporal/filter.h" 26 #include "temporal/c design.h"26 #include "temporal/c_weighting.h" 27 27 28 void aubio_filter_set_c dsgn(aubio_filter_t * f) {28 void aubio_filter_set_c_weighting (aubio_filter_t * f) { 29 29 30 30 uint_t samplerate = aubio_filter_get_samplerate (f); … … 129 129 } 130 130 131 aubio_filter_t * new_aubio_filter_c dsgn(uint_t samplerate, uint_t channels) {131 aubio_filter_t * new_aubio_filter_c_weighting (uint_t samplerate, uint_t channels) { 132 132 aubio_filter_t * f = new_aubio_filter(samplerate, 5, channels); 133 aubio_filter_set_c dsgn(f);133 aubio_filter_set_c_weighting (f); 134 134 return f; 135 135 } -
src/temporal/c_weighting.h
ra4364b8 rc159aeb 64 64 65 65 */ 66 aubio_filter_t * new_aubio_filter_c dsgn(uint_t samplerate, uint_t channels);66 aubio_filter_t * new_aubio_filter_c_weighting (uint_t samplerate, uint_t channels); 67 67 68 68 /** set feedback and feedforward coefficients of a C-weighting filter … … 71 71 72 72 */ 73 void aubio_filter_set_c dsgn(aubio_filter_t *f);73 void aubio_filter_set_c_weighting (aubio_filter_t *f); 74 74 75 75 #ifdef __cplusplus -
src/temporal/filter.h
ra4364b8 rc159aeb 53 53 54 54 Some convenience functions are provided: 55 - new_aubio_filter_a dsgn() and aubio_filter_set_adsgn(),56 - new_aubio_filter_c dsgn() and aubio_filter_set_cdsgn().55 - new_aubio_filter_a_weighting() and aubio_filter_set_a_weighting(), 56 - new_aubio_filter_c_weighting() and aubio_filter_set_c_weighting(). 57 57 58 58 */
Note: See TracChangeset
for help on using the changeset viewer.