projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f19db54
)
[py] add minimal docstring to fft
author
Paul Brossier
<piem@piem.org>
Mon, 3 Dec 2018 15:12:51 +0000
(16:12 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 3 Dec 2018 15:12:51 +0000
(16:12 +0100)
python/ext/py-fft.c
patch
|
blob
|
history
diff --git
a/python/ext/py-fft.c
b/python/ext/py-fft.c
index
8763632
..
a08af4e
100644
(file)
--- a/
python/ext/py-fft.c
+++ b/
python/ext/py-fft.c
@@
-1,6
+1,24
@@
#include "aubio-types.h"
#include "aubio-types.h"
-static char Py_fft_doc[] = "fft object";
+static char Py_fft_doc[] = ""
+"fft(size=1024)\n"
+"\n"
+"Compute Fast Fourier Transorms.\n"
+"\n"
+"Parameters\n"
+"----------\n"
+"size : int\n"
+" size of the FFT to compute\n"
+"\n"
+"Example\n"
+"-------\n"
+">>> x = aubio.fvec(512)\n"
+">>> f = aubio.fft(512)\n"
+">>> c = f(x); c\n"
+"aubio cvec of 257 elements\n"
+">>> x2 = f.rdo(c); x2.shape\n"
+"(512,)\n"
+"";
typedef struct
{
typedef struct
{