Changeset 822190c for examples


Ignore:
Timestamp:
Dec 29, 2013, 12:39:05 AM (11 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, pitchshift, sampler, timestretch, yinfft+
Children:
f4adefaa
Parents:
5c6acbb2
Message:

examples/aubioonset.c: synth only when need be

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    r5c6acbb2 r822190c  
    3232void
    3333process_block(fvec_t *ibuf, fvec_t *obuf) {
    34   fvec_zeros(obuf);
    3534  aubio_onset_do (o, ibuf, onset);
    3635  is_onset = fvec_get_sample(onset, 0);
     36  if ( !usejack && ! sink_uri ) return;
     37  fvec_zeros(obuf);
    3738  if ( is_onset ) {
    3839    aubio_wavetable_play ( wavetable );
Note: See TracChangeset for help on using the changeset viewer.