view modules-and-plug-ins/python-module/setup.py @ 55:5e520f59127f

Changed the interface of the algorithm so that onset detection function samples are calculated internally. This makes the call to the algorithm for most cases much simpler. Also added a static function for calculating beat times in seconds based upon sampling frequency, hop size and the current frame number.
author Adam Stark <adamstark@users.noreply.github.com>
date Wed, 22 Jan 2014 18:47:16 +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'])]
      )