endif
endif
-SUBDIRS = src ext examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(DOC)
+SUBDIRS = src ext cpp examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(DOC)
EXTRA_DIST = bootstrap VERSION
docs:
Makefile
src/Makefile
ext/Makefile
+ cpp/Makefile
examples/Makefile
tests/Makefile
tests/src/Makefile
--- /dev/null
+pkginclude_HEADERS = aubiocpp.h
+
+lib_LTLIBRARIES = libaubiocpp.la
+libaubiocpp_la_SOURCES = aubiocpp.cpp
+AM_CFLAGS = -I$(top_srcdir)/src @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
+libaubiocpp_la_LIBADD = -laubio -L${top_builddir}/src @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
+libaubiocpp_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
--- /dev/null
+#include "aubio.h"
+#include "aubiocpp.h"
+
+namespace aubio {
+
+ fvec::fvec(uint_t length, uint_t channels) {
+ self = new_fvec(length, channels);
+ }
+
+ fvec::~fvec() {
+ del_fvec(self);
+ }
+
+ smpl_t* fvec::operator[]( uint_t channel ) {
+ return self->data[channel];
+ }
+
+ cvec::cvec(uint_t length, uint_t channels) {
+ self = new_cvec(length, channels);
+ norm = self->norm;
+ phas = self->phas;
+ }
+
+ cvec::~cvec() {
+ del_cvec(self);
+ }
+
+}
--- /dev/null
+#include "aubio.h"
+
+namespace aubio {
+
+ class fvec {
+
+ private:
+ fvec_t * self;
+
+ public:
+ fvec(uint_t length, uint_t channels);
+ ~fvec();
+ smpl_t* operator[]( uint_t channel );
+
+ };
+
+ class cvec {
+
+ private:
+ cvec_t * self;
+
+ public:
+ smpl_t ** norm;
+ smpl_t ** phas;
+
+ cvec(uint_t length, uint_t channels);
+ ~cvec();
+
+ };
+
+}