Changeset 21234ee for src/fvec.h


Ignore:
Timestamp:
Dec 18, 2013, 8:07:27 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:
6465d7f
Parents:
1573b16 (diff), c3c6305 (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 branch 'master' of aubio.org:/git/aubio/aubio into develop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fvec.h

    r1573b16 r21234ee  
    11/*
    2   Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    1919*/
    2020
    21 #ifndef _FVEC_H
    22 #define _FVEC_H
     21#ifndef _AUBIO__FVEC_H
     22#define _AUBIO__FVEC_H
    2323
    2424#ifdef __cplusplus
     
    7676*/
    7777fvec_t * new_fvec(uint_t length);
     78
    7879/** fvec_t buffer deletion function
    7980
     
    8283*/
    8384void del_fvec(fvec_t *s);
     85
    8486/** read sample value in a buffer
    85 
    86   Note that this function is not used in the aubio library, since the same
    87   result can be obtained using vec->data[position]. Its purpose is to
    88   access these values from wrappers, as created by swig.
    8987
    9088  \param s vector to read from
     
    9290
    9391*/
    94 smpl_t fvec_read_sample(fvec_t *s, uint_t position);
     92smpl_t fvec_get_sample(fvec_t *s, uint_t position);
     93
    9594/** write sample value in a buffer
    96 
    97   Note that this function is not used in the aubio library, since the same
    98   result can be obtained by assigning vec->data[position]. Its purpose
    99   is to access these values from wrappers, as created by swig.
    10095
    10196  \param s vector to write to
     
    10499
    105100*/
    106 void  fvec_write_sample(fvec_t *s, smpl_t data, uint_t position);
     101void  fvec_set_sample(fvec_t *s, smpl_t data, uint_t position);
    107102
    108103/** read data from a buffer
    109 
    110   Note that this function is not used in the aubio library, since the same
    111   result can be obtained with vec->data. Its purpose is to access these values
    112   from wrappers, as created by swig.
    113104
    114105  \param s vector to read from
     
    130121
    131122*/
    132 void fvec_set(fvec_t *s, smpl_t val);
     123void fvec_set_all (fvec_t *s, smpl_t val);
    133124
    134125/** set all elements to zero
     
    176167#endif
    177168
    178 #endif /* _FVEC_H */
     169#endif /* _AUBIO__FVEC_H */
Note: See TracChangeset for help on using the changeset viewer.