Changeset 6e6849d for tests/src/effects
- Timestamp:
- Sep 21, 2016, 5:10:56 PM (8 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch
- Children:
- 25a19c2
- Parents:
- 9953f09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/effects/test-pitchshift.c
r9953f09 r6e6849d 10 10 err = 2; 11 11 PRINT_ERR("not enough arguments\n"); 12 PRINT_MSG("usage: %s <input_path> <output_path> <transpose> [ samplerate] [hop_size]\n", argv[0]);12 PRINT_MSG("usage: %s <input_path> <output_path> <transpose> [mode] [hop_size] [samplerate]\n", argv[0]); 13 13 PRINT_MSG(" with <transpose> a number of semi tones in the range [-24, 24]\n"); 14 PRINT_MSG(" and [mode] in 'default', 'crispness:0', ..., 'crispness:6'\n"); 14 15 return err; 15 16 } … … 23 24 char_t *source_path = argv[1]; 24 25 char_t *sink_path = argv[2]; 26 char_t *mode = "default"; 25 27 26 28 transpose = atof(argv[3]); 27 29 28 if ( argc >= 5 ) samplerate = atoi(argv[4]);30 if ( argc >= 5 ) mode = argv[4]; 29 31 if ( argc >= 6 ) hop_size = atoi(argv[5]); 30 if ( argc >= 7 ) { 32 if ( argc >= 7 ) samplerate = atoi(argv[6]); 33 if ( argc >= 8 ) { 31 34 err = 2; 32 35 PRINT_ERR("too many arguments\n"); … … 46 49 if (!o) { err = 1; goto beach_sink; } 47 50 48 aubio_pitchshift_t *ps = new_aubio_pitchshift( "default", transpose, hop_size, samplerate);51 aubio_pitchshift_t *ps = new_aubio_pitchshift(mode, transpose, hop_size, samplerate); 49 52 if (!ps) { err = 1; goto beach_pitchshift; } 50 53
Note: See TracChangeset
for help on using the changeset viewer.