Ignore:
Timestamp:
Mar 12, 2017, 11:26:24 AM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
bde49c4a
Parents:
71f2e5f (diff), 67b6618 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 'origin/master' into sampler

Conflicts:

.travis.yml
Makefile
examples/aubionotes.c
examples/parse_args.h
python/demos/demo_timestretch_online.py
python/lib/moresetuptools.py
python/tests/test_source.py
setup.py
src/io/source.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/parse_args.h

    r71f2e5f r41b985f  
    3737extern char_t * onset_method;
    3838extern smpl_t onset_threshold;
     39extern smpl_t onset_minioi;
    3940// pitch stuff
    4041extern char_t * pitch_method;
     
    9293      "       -t      --onset-threshold  set onset detection threshold\n"
    9394      "                 a value between 0.1 (more detections) and 1 (less); default=0.3\n"
     95      "       -M      --minioi           set minimum inter-onset interval\n"
     96      "                 a value in second; default=0.012\n"
    9497#endif /* PROG_HAS_ONSET */
    9598#ifdef PROG_HAS_PITCH
     
    115118#ifdef PROG_HAS_JACK
    116119      "       -j      --jack             use Jack\n"
     120#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH)
     121      "       -N      --miditap-note     MIDI note; default=69.\n"
     122      "       -V      --miditap-velo     MIDI velocity; default=65.\n"
     123#endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */
    117124#endif /* PROG_HAS_JACK */
    118125      "       -v      --verbose          be verbose\n"
     
    134141#ifdef PROG_HAS_JACK
    135142    "j"
     143#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH)
     144    "N:V:"
     145#endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */
    136146#endif /* PROG_HAS_JACK */
    137147#ifdef PROG_HAS_OUTPUT
     
    139149#endif /* PROG_HAS_OUTPUT */
    140150#ifdef PROG_HAS_ONSET
    141     "O:t:"
     151    "O:t:M:"
    142152#endif /* PROG_HAS_ONSET */
    143153#ifdef PROG_HAS_PITCH
     
    162172#ifdef PROG_HAS_JACK
    163173    {"jack",                  0, NULL, 'j'},
     174#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH)
     175    {"miditap-note",          1, NULL, 'N'},
     176    {"miditap-velo",          1, NULL, 'V'},
     177#endif /* PROG_HAS_ONSET !PROG_HAS_PITCH */
    164178#endif /* PROG_HAS_JACK */
    165179#ifdef PROG_HAS_OUTPUT
     
    169183    {"onset",                 1, NULL, 'O'},
    170184    {"onset-threshold",       1, NULL, 't'},
     185    {"onset-minioi",          1, NULL, 'M'},
    171186#endif /* PROG_HAS_ONSET */
    172187#ifdef PROG_HAS_PITCH
     
    204219        usejack = 1;
    205220        break;
     221      case 'N':
     222        miditap_note = (smpl_t) atoi (optarg);
     223        break;
     224      case 'V':
     225        miditap_velo = (smpl_t) atoi (optarg);
     226        break;
    206227      case 'i':
    207228        source_uri = optarg;
     
    227248      case 't':                /* threshold value for onset */
    228249        onset_threshold = (smpl_t) atof (optarg);
     250        break;
     251      case 'M':                /* minimum inter-onset-interval */
     252        onset_minioi = (smpl_t) atof (optarg);
    229253        break;
    230254      case 'p':
Note: See TracChangeset for help on using the changeset viewer.