Changes in / [ab24edb:95221ac]
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
azure-pipelines.yml
rab24edb r95221ac 1 1 # configuration file for azure continuous integration 2 2 jobs: 3 3 4 - job: linux 4 5 pool: 5 6 vmImage: 'Ubuntu 16.04' 6 7 7 steps: 8 8 - script: | 9 9 make 10 10 displayName: 'make' 11 env: 12 CFLAGS: -Werror 13 11 14 - job: windows 12 15 pool: 13 16 vmIMage: 'VS2017-Win2016' 14 15 17 steps: 16 18 - script: | … … 24 26 pool: 25 27 vmIMage: macOS-10.13 26 27 28 steps: 28 29 - script: | … … 34 35 make 35 36 displayName: 'make' 37 env: 38 CFLAGS: -Werror -
doc/aubiomfcc.txt
rab24edb r95221ac 52 52 url: 53 53 54 http ://cobweb.ecn.purdue.edu/~malcolm/interval/1998-010/ (see file mfcc.m)54 https://engineering.purdue.edu/~malcolm/interval/1998-010/ (see file mfcc.m) 55 55 56 56 SEE ALSO -
python/ext/py-filterbank.c
rab24edb r95221ac 95 95 if (self->vec.length != self->win_s / 2 + 1) { 96 96 PyErr_Format(PyExc_ValueError, 97 "input cvec has length %d, but f ftexpects length %d",97 "input cvec has length %d, but filterbank expects length %d", 98 98 self->vec.length, self->win_s / 2 + 1); 99 99 return NULL; … … 140 140 if (err > 0) { 141 141 PyErr_SetString (PyExc_ValueError, 142 "error when setting filter to A-weighting");142 "error when running set_triangle_bands"); 143 143 return NULL; 144 144 } … … 159 159 if (err > 0) { 160 160 PyErr_SetString (PyExc_ValueError, 161 "error when setting filter to A-weighting");161 "error when running set_mel_coeffs_slaney"); 162 162 return NULL; 163 163 } -
python/lib/aubio/cmd.py
rab24edb r95221ac 503 503 def main(): 504 504 parser = aubio_parser() 505 args = parser.parse_args() 505 if sys.version_info[0] != 3: 506 # on py2, create a dummy ArgumentParser to workaround the 507 # optional subcommand issue. See https://bugs.python.org/issue9253 508 # This ensures that: 509 # - version string is shown when only '-V' is passed 510 # - help is printed if '-V' is passed with any other argument 511 # - any other argument get forwarded to the real parser 512 parser_root = argparse.ArgumentParser(add_help=False) 513 parser_root.add_argument('-V', '--version', help="show version", 514 action="store_true", dest="show_version") 515 args, extras = parser_root.parse_known_args() 516 if args.show_version == False: # no -V, forward to parser 517 args = parser.parse_args(extras, namespace=args) 518 elif len(extras) != 0: # -V with other arguments, print help 519 parser.print_help() 520 sys.exit(1) 521 else: # in py3, we can simply use parser directly 522 args = parser.parse_args() 506 523 if 'show_version' in args and args.show_version: 507 524 sys.stdout.write('aubio version ' + aubio.version + '\n') -
python/tests/test_aubio_cmd.py
rab24edb r95221ac 20 20 21 21 def test_samples2seconds(self): 22 self.assertEqual(aubio.cmd.samples2seconds(3200, 32000), "0.100000\t") 22 self.assertEqual(aubio.cmd.samples2seconds(3200, 32000), 23 "0.100000\t") 23 24 24 25 def test_samples2milliseconds(self): 25 self.assertEqual(aubio.cmd.samples2milliseconds(3200, 32000), "100.000000\t") 26 self.assertEqual(aubio.cmd.samples2milliseconds(3200, 32000), 27 "100.000000\t") 26 28 27 29 def test_samples2samples(self): 28 self.assertEqual(aubio.cmd.samples2samples(3200, 32000), "3200\t") 30 self.assertEqual(aubio.cmd.samples2samples(3200, 32000), 31 "3200\t") 29 32 30 33 if __name__ == '__main__': -
src/io/source_avcodec.c
rab24edb r95221ac 435 435 goto beach; 436 436 } 437 #else 438 #warning "avutil < 53 is deprecated, crashes might occur on corrupt files" 437 439 #endif 438 440 -
src/spectral/filterbank_mel.h
rab24edb r95221ac 59 59 60 60 The filter coefficients are built according to Malcolm Slaney's Auditory 61 Toolbox, available at http://engineering.purdue.edu/~malcolm/interval/1998-010/ 62 (see file mfcc.m). 61 Toolbox, available online at the following address (see file mfcc.m): 62 63 https://engineering.purdue.edu/~malcolm/interval/1998-010/ 63 64 64 65 */ -
src/spectral/mfcc.h
rab24edb r95221ac 27 27 28 28 The implementation follows the specifications established by Malcolm Slaney 29 in its Auditory Toolbox, available online (see file mfcc.m). 29 in its Auditory Toolbox, available online at the following address (see 30 file mfcc.m): 30 31 31 http ://engineering.ecn.purdue.edu/~malcolm/interval/1998-010/32 https://engineering.purdue.edu/~malcolm/interval/1998-010/ 32 33 33 34 \example spectral/test-mfcc.c -
src/spectral/phasevoc.c
rab24edb r95221ac 213 213 synthold[i] += synth[i + pv->hop_s] * pv->scale; 214 214 } 215 216 uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv) 217 { 218 return pv->win_s; 219 } 220 221 uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv) 222 { 223 return pv->hop_s; 224 } -
src/spectral/phasevoc.h
rab24edb r95221ac 89 89 */ 90 90 uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv); 91 91 92 /** get hop size 92 93
Note: See TracChangeset
for help on using the changeset viewer.