Ignore:
Timestamp:
Dec 17, 2013, 5:13:28 PM (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:
941c9f9
Parents:
5d10ac1
Message:

src/fvec.h: clean up fvec api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiopitch.c

    r5d10ac1 rc34336e  
    3333  fvec_zeros(obuf);
    3434  aubio_pitch_do (o, ibuf, pitch);
    35   smpl_t freq = fvec_read_sample(pitch, 0);
     35  smpl_t freq = fvec_get_sample(pitch, 0);
    3636  aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) );
    3737  aubio_wavetable_set_freq ( wavetable, freq );
     
    4545void
    4646process_print (void) {
    47   smpl_t pitch_found = fvec_read_sample(pitch, 0);
     47  smpl_t pitch_found = fvec_get_sample(pitch, 0);
    4848  outmsg("%f %f\n",(blocks)
    4949      *hop_size/(float)samplerate, pitch_found);
     
    7070  if (pitch_unit != NULL)
    7171    aubio_pitch_set_unit (o, pitch_unit);
     72
    7273  pitch = new_fvec (1);
    7374
Note: See TracChangeset for help on using the changeset viewer.