Changeset f4adefaa for examples


Ignore:
Timestamp:
Dec 29, 2013, 12:39:45 AM (10 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:
fc7043a
Parents:
822190c
Message:

examples/aubiopitch.c: synth only when need be

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiopitch.c

    r822190c rf4adefaa  
    3131void
    3232process_block(fvec_t * ibuf, fvec_t * obuf) {
     33  aubio_pitch_do (o, ibuf, pitch);
     34  if ( !usejack && ! sink_uri ) return;
    3335  fvec_zeros(obuf);
    34   aubio_pitch_do (o, ibuf, pitch);
    3536  smpl_t freq = fvec_get_sample(pitch, 0);
    3637  aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) );
    3738  aubio_wavetable_set_freq ( wavetable, freq );
    38 
    3939  if (mix_input)
    4040    aubio_wavetable_do (wavetable, ibuf, obuf);
Note: See TracChangeset for help on using the changeset viewer.