Changes in / [95221ac:ab24edb]
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
azure-pipelines.yml
r95221ac rab24edb 1 1 # configuration file for azure continuous integration 2 2 jobs: 3 4 3 - job: linux 5 4 pool: 6 5 vmImage: 'Ubuntu 16.04' 6 7 7 steps: 8 8 - script: | 9 9 make 10 10 displayName: 'make' 11 env:12 CFLAGS: -Werror13 14 11 - job: windows 15 12 pool: 16 13 vmIMage: 'VS2017-Win2016' 14 17 15 steps: 18 16 - script: | … … 26 24 pool: 27 25 vmIMage: macOS-10.13 26 28 27 steps: 29 28 - script: | … … 35 34 make 36 35 displayName: 'make' 37 env:38 CFLAGS: -Werror -
doc/aubiomfcc.txt
r95221ac rab24edb 52 52 url: 53 53 54 http s://engineering.purdue.edu/~malcolm/interval/1998-010/ (see file mfcc.m)54 http://cobweb.ecn.purdue.edu/~malcolm/interval/1998-010/ (see file mfcc.m) 55 55 56 56 SEE ALSO -
python/ext/py-filterbank.c
r95221ac rab24edb 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 ilterbankexpects length %d",97 "input cvec has length %d, but fft 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 running set_triangle_bands");142 "error when setting filter to A-weighting"); 143 143 return NULL; 144 144 } … … 159 159 if (err > 0) { 160 160 PyErr_SetString (PyExc_ValueError, 161 "error when running set_mel_coeffs_slaney");161 "error when setting filter to A-weighting"); 162 162 return NULL; 163 163 } -
python/lib/aubio/cmd.py
r95221ac rab24edb 503 503 def main(): 504 504 parser = aubio_parser() 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() 505 args = parser.parse_args() 523 506 if 'show_version' in args and args.show_version: 524 507 sys.stdout.write('aubio version ' + aubio.version + '\n') -
python/tests/test_aubio_cmd.py
r95221ac rab24edb 20 20 21 21 def test_samples2seconds(self): 22 self.assertEqual(aubio.cmd.samples2seconds(3200, 32000), 23 "0.100000\t") 22 self.assertEqual(aubio.cmd.samples2seconds(3200, 32000), "0.100000\t") 24 23 25 24 def test_samples2milliseconds(self): 26 self.assertEqual(aubio.cmd.samples2milliseconds(3200, 32000), 27 "100.000000\t") 25 self.assertEqual(aubio.cmd.samples2milliseconds(3200, 32000), "100.000000\t") 28 26 29 27 def test_samples2samples(self): 30 self.assertEqual(aubio.cmd.samples2samples(3200, 32000), 31 "3200\t") 28 self.assertEqual(aubio.cmd.samples2samples(3200, 32000), "3200\t") 32 29 33 30 if __name__ == '__main__': -
src/io/source_avcodec.c
r95221ac rab24edb 435 435 goto beach; 436 436 } 437 #else438 #warning "avutil < 53 is deprecated, crashes might occur on corrupt files"439 437 #endif 440 438 -
src/spectral/filterbank_mel.h
r95221ac rab24edb 59 59 60 60 The filter coefficients are built according to Malcolm Slaney's Auditory 61 Toolbox, available online at the following address (see file mfcc.m): 62 63 https://engineering.purdue.edu/~malcolm/interval/1998-010/ 61 Toolbox, available at http://engineering.purdue.edu/~malcolm/interval/1998-010/ 62 (see file mfcc.m). 64 63 65 64 */ -
src/spectral/mfcc.h
r95221ac rab24edb 27 27 28 28 The implementation follows the specifications established by Malcolm Slaney 29 in its Auditory Toolbox, available online at the following address (see 30 file mfcc.m): 29 in its Auditory Toolbox, available online (see file mfcc.m). 31 30 32 http s://engineering.purdue.edu/~malcolm/interval/1998-010/31 http://engineering.ecn.purdue.edu/~malcolm/interval/1998-010/ 33 32 34 33 \example spectral/test-mfcc.c -
src/spectral/phasevoc.c
r95221ac rab24edb 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
r95221ac rab24edb 89 89 */ 90 90 uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv); 91 92 91 /** get hop size 93 92
Note: See TracChangeset
for help on using the changeset viewer.