Changeset 0de816c for tests/src/synth


Ignore:
Timestamp:
Nov 29, 2018, 6:36:22 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
242e923
Parents:
9ffa590
Message:

[tests] fix argument parsing in onset and wavetable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/synth/test-wavetable.c

    r9ffa590 r0de816c  
    1818
    1919  char_t *sink_path = argv[1];
    20   if ( argc == 4 ) samplerate = atoi(argv[3]);
    21   if ( argc == 3 ) freq = atof(argv[2]);
     20  if ( argc >= 4 ) samplerate = atoi(argv[3]);
     21  if ( argc >= 3 ) freq = atof(argv[2]);
    2222
    2323  fvec_t *vec = new_fvec(hop_size);
Note: See TracChangeset for help on using the changeset viewer.