Mercurial > hg > btrack
view modules-and-plug-ins/python-module/setup.py @ 54:9699024bb3d0
Before this commit, the OnsetDetectionFunction class used double precision, and the BTrack class used floats. I have now made BTrack use double precision also. This works fine and the only cost of doing this is that we have to perform one array copy into floating point format so that sample rate conversion (which has to be in floating point format) can take place.
author | Adam Stark <adamstark@users.noreply.github.com> |
---|---|
date | Wed, 22 Jan 2014 02:49:29 +0000 |
parents | 68d01fea1e8d |
children | db22205f8ffa |
line wrap: on
line source
# setup.py # build command : python setup.py build build_ext --inplace from numpy.distutils.core import setup, Extension import os, numpy name = 'btrack' sources = ['btrack_python_module.cpp','../../src/OnsetDetectionFunction.cpp','../../src/BTrack.cpp'] include_dirs = [ numpy.get_include(),'/usr/local/include' ] setup( name = 'BTrack', include_dirs = include_dirs, ext_modules = [Extension(name, sources,libraries = ['fftw3','samplerate'])] )