Changeset 21234ee for src/fmat.c


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/fmat.c

    r1573b16 r21234ee  
    2222#include "fmat.h"
    2323
    24 fmat_t * new_fmat (uint_t length, uint_t height) {
     24fmat_t * new_fmat (uint_t height, uint_t length) {
    2525  if ((sint_t)length <= 0 || (sint_t)height <= 0 ) {
    2626    return NULL;
     
    4949}
    5050
    51 void fmat_write_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position) {
     51void fmat_set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position) {
    5252  s->data[channel][position] = data;
    5353}
    54 smpl_t fmat_read_sample(fmat_t *s, uint_t channel, uint_t position) {
     54
     55smpl_t fmat_get_sample(fmat_t *s, uint_t channel, uint_t position) {
    5556  return s->data[channel][position];
    5657}
    57 void fmat_put_channel(fmat_t *s, smpl_t * data, uint_t channel) {
    58   s->data[channel] = data;
    59 }
     58
    6059void fmat_get_channel(fmat_t *s, uint_t channel, fvec_t *output) {
    6160  output->data = s->data[channel];
    6261  output->length = s->length;
    6362  return;
     63}
     64
     65smpl_t * fmat_get_channel_data(fmat_t *s, uint_t channel) {
     66  return s->data[channel];
    6467}
    6568
Note: See TracChangeset for help on using the changeset viewer.