source: interfaces/cpp/aubiocpp.cpp @ 68607fd

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 68607fd was 00f48dc, checked in by Paul Brossier <piem@piem.org>, 15 years ago

interfaces/cpp/aubiocpp.cpp: use getters

  • Property mode set to 100644
File size: 491 bytes
Line 
1#include "aubio.h"
2#include "aubiocpp.h"
3
4namespace aubio {
5
6  fvec::fvec(uint_t length, uint_t channels) {
7    self = new_fvec(length, channels);
8  }
9
10  fvec::~fvec() {
11    del_fvec(self);
12  }
13
14  smpl_t* fvec::operator[]( uint_t channel ) {
15    return fvec_get_channel(self, channel);
16  }
17
18  cvec::cvec(uint_t length, uint_t channels) {
19    self = new_cvec(length, channels);
20    norm = cvec_get_norm(self);
21    phas = cvec_get_phas(self);
22  }
23
24  cvec::~cvec() {
25    del_cvec(self);
26  }
27
28}
Note: See TracBrowser for help on using the repository browser.