summaryrefslogtreecommitdiff
path: root/sndobj/sndobj.i
blob: 413e7aea53b7ceb370e01a18d5c5f932e4c6ff8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%module(directors="1") pysndobj
%{
	#include "SndObj.h"
	#include "SndIO.h"
	#include "Table.h"
	#include "FFT.h"
	#include "IFFT.h"
	#include "PVA.h"
	#include "PVS.h"
	#include "IFGram.h"
	#include "SinAnal.h"
	#include "SinSyn.h"
	#include "AdSyn.h"
	#include "ReSyn.h"
	#include "HarmTable.h"
	#include "HammingTable.h"
	#define SWIG_FILE_WITH_INIT
%}

%feature("director") SndObj;
%feature("director") SinAnal;

%include "../common/numpy.i"

%init 
%{
    import_array();
%}

%ignore SndObj::SndObj(SndObj &);
%ignore SndObj::operator=(SndObj);

%apply(double* IN_ARRAY1, int DIM1) {(double* in_vector, int size)};
%apply(double* INPLACE_ARRAY1, int DIM1) {(double* out_vector, int size)};
%include "SndObj.h"
%clear(double* in_vector, int size);
%clear(double* out_vector, int size);

%include "SndIO.h"
%include "Table.h"
%include "FFT.h"
%include "IFFT.h"
%include "PVA.h"
%include "PVS.h"
%include "IFGram.h"

%apply (int DIM1, double* IN_ARRAY1)
{
    (int numamps, double* amps),
    (int numfreqs, double* freqs),
    (int numphases, double* phases)
}
%include "SinAnal.h"
%include "SinSyn.h"
%include "ReSyn.h"
%include "AdSyn.h"
%include "HarmTable.h"
%include "HammingTable.h"