- Timestamp:
- Dec 31, 2013, 12:06:20 AM (11 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:
- 029bf4e
- Parents:
- 2b43a9e
- Location:
- examples
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
r2b43a9e rd389e23 30 30 uint_t n_coefs = 13; 31 31 32 static void 33 process_block(fvec_t *ibuf, fvec_t *obuf){32 void process_block (fvec_t *ibuf, fvec_t *obuf) 33 { 34 34 fvec_zeros(obuf); 35 35 //compute mag spectrum … … 39 39 } 40 40 41 static void process_print (void) { 41 void process_print (void) 42 { 42 43 /* output times in seconds and extracted mfccs */ 43 44 outmsg("%f\t",blocks*hop_size/(float)samplerate); -
examples/aubionotes.c
r2b43a9e rd389e23 46 46 uint_t get_note (fvec_t * note_buffer, fvec_t * note_buffer2); 47 47 48 static void 49 process_block(fvec_t *ibuf, fvec_t *obuf){48 void process_block (fvec_t *ibuf, fvec_t *obuf) 49 { 50 50 fvec_zeros(obuf); 51 51 aubio_onset_do(o, ibuf, onset); … … 95 95 } 96 96 97 static void 98 process_print (void){97 void process_print (void) 98 { 99 99 //if (verbose) outmsg("%f\n",pitch_obuf->data[0]); 100 100 } -
examples/aubioonset.c
r2b43a9e rd389e23 30 30 smpl_t is_onset; 31 31 32 void 33 process_block(fvec_t *ibuf, fvec_t *obuf){32 void process_block(fvec_t *ibuf, fvec_t *obuf) 33 { 34 34 aubio_onset_do (o, ibuf, onset); 35 35 is_onset = fvec_get_sample(onset, 0); … … 47 47 } 48 48 49 void 50 process_print (void) 49 void process_print (void) 51 50 { 52 51 if ( is_onset ) { -
examples/aubiopitch.c
r2b43a9e rd389e23 29 29 fvec_t *pitch; 30 30 31 void 32 process_block(fvec_t * ibuf, fvec_t * obuf){31 void process_block(fvec_t * ibuf, fvec_t * obuf) 32 { 33 33 aubio_pitch_do (o, ibuf, pitch); 34 34 if ( !usejack && ! sink_uri ) return; … … 43 43 } 44 44 45 void 46 process_print (void){45 void process_print (void) 46 { 47 47 smpl_t pitch_found = fvec_get_sample(pitch, 0); 48 48 outmsg("%f %f\n",(blocks) -
examples/aubioquiet.c
r2b43a9e rd389e23 37 37 } 38 38 39 staticvoid process_print (void) {39 void process_print (void) { 40 40 int curblocks = (blocks - 4) > 0 ? blocks - 4 : 0; 41 41 if (issilence == -1) { -
examples/parse_args.h
r2b43a9e rd389e23 48 48 extern void examples_common_process (aubio_process_func_t process_func, 49 49 aubio_print_func_t print); 50 int parse_args (int argc, char **argv); 50 51 51 52 // internal stuff … … 57 58 const char *prog_name; 58 59 59 void 60 usage (FILE * stream, int exit_code) 60 void usage (FILE * stream, int exit_code); 61 62 void usage (FILE * stream, int exit_code) 61 63 { 62 64 fprintf (stream, "usage: %s [ options ] \n", prog_name); -
examples/utils.c
r2b43a9e rd389e23 73 73 #endif 74 74 75 void 76 examples_common_init (int argc, char **argv) 75 void examples_common_init (int argc, char **argv); 76 void examples_common_del (void); 77 void examples_common_process (aubio_process_func_t process_func, 78 aubio_print_func_t print); 79 80 void examples_common_init (int argc, char **argv) 77 81 { 78 82 … … 116 120 } 117 121 118 void 119 examples_common_del (void) 122 void examples_common_del (void) 120 123 { 121 124 del_fvec (ibuf); … … 126 129 } 127 130 128 void 129 examples_common_process (aubio_process_func_t process_func, 131 void examples_common_process (aubio_process_func_t process_func, 130 132 aubio_print_func_t print) 131 133 { -
examples/utils.h
r2b43a9e rd389e23 54 54 /** common process function */ 55 55 typedef int (*aubio_process_func_t) (fvec_t * input, fvec_t * output); 56 57 void process_block (fvec_t *ibuf, fvec_t *obuf); 58 void process_print (void);
Note: See TracChangeset
for help on using the changeset viewer.