feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since bd54912 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:
576 bytes
|
Rev | Line | |
---|
[445e0dca] | 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 | cvec c = cvec(win_s, channels); /* input buffer */ |
---|
| 12 | cout << c.norm[0][0] << endl; |
---|
| 13 | c.norm[0][0] = 2.; |
---|
| 14 | cout << c.norm[0][0] << endl; |
---|
| 15 | cout << c.phas[0][0] << endl; |
---|
| 16 | c.phas[0][0] = 2.; |
---|
| 17 | cout << c.phas[0][0] << endl; |
---|
| 18 | return 0; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.