feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since db62622 was
445e0dca,
checked in by Paul Brossier <piem@piem.org>, 17 years ago
|
added simple tests in tests/cpp for cpp interface draft
|
-
Property mode set to
100644
|
File size:
457 bytes
|
Line | |
---|
1 | #include <iostream> |
---|
2 | #include <aubiocpp.h> |
---|
3 | |
---|
4 | using namespace std; |
---|
5 | using namespace aubio; |
---|
6 | |
---|
7 | int main(){ |
---|
8 | /* allocate some memory */ |
---|
9 | uint_t win_s = 1024; /* window size */ |
---|
10 | uint_t channels = 1; /* number of channel */ |
---|
11 | fvec f = fvec(win_s, channels); /* input buffer */ |
---|
12 | cout << f[0][0] << endl; |
---|
13 | f[0][0] = 2.; |
---|
14 | cout << f[0][0] << endl; |
---|
15 | return 0; |
---|
16 | } |
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.