annotate swig/setup.py @ 16:2a5354042241

-Updated the Slaney IIR gammatone to use a cascase of four second-order filters as per the implementtion in Slaney's auditory toolbox. This is more numerically stable at high sample rates and low centre frequencies.
author tomwalters
date Sat, 20 Feb 2010 17:56:40 +0000
parents 88fe02836a6b
children fff25824d1d1
rev   line source
tomwalters@0 1 #!/usr/bin/env python
tomwalters@0 2 # Copyright 2010, Thomas Walters
tomwalters@0 3 #
tomwalters@0 4 # AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@1 5 # http://www.acousticscale.org/AIMC
tomwalters@0 6 #
tomwalters@0 7 # This program is free software: you can redistribute it and/or modify
tomwalters@0 8 # it under the terms of the GNU General Public License as published by
tomwalters@0 9 # the Free Software Foundation, either version 3 of the License, or
tomwalters@0 10 # (at your option) any later version.
tomwalters@0 11 #
tomwalters@0 12 # This program is distributed in the hope that it will be useful,
tomwalters@0 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@0 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@0 15 # GNU General Public License for more details.
tomwalters@0 16 #
tomwalters@0 17 # You should have received a copy of the GNU General Public License
tomwalters@1 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
tomwalters@0 19
tomwalters@0 20 """
tomwalters@0 21 setup.py file for SWIG wrappers around aimc
tomwalters@0 22 """
tomwalters@0 23
tomwalters@0 24 from distutils.core import setup, Extension
tomwalters@0 25
tomwalters@0 26 aimc_module = Extension('_aimc',
tomwalters@0 27 sources = ['aim_modules.i',
tomwalters@0 28 '../src/Support/Common.cc',
tomwalters@0 29 '../src/Support/Parameters.cc',
tomwalters@1 30 '../src/Support/SignalBank.cc',
tomwalters@1 31 '../src/Support/Module.cc',
tomwalters@5 32 '../src/Modules/Features/ModuleGaussians.cc',
tomwalters@16 33 '../src/Modules/BMM/ModuleGammatone.cc',
tomwalters@13 34 '../src/Modules/BMM/ModulePZFC.cc',
tomwalters@13 35 '../src/Modules/NAP/ModuleHCL.cc',
tomwalters@13 36 '../src/Modules/Strobes/ModuleParabola.cc',
tomwalters@13 37 '../src/Modules/SAI/ModuleSAI.cc',
tomwalters@13 38 '../src/Modules/SSI/ModuleSSI.cc',
tomwalters@13 39 '../src/Modules/Profile/ModuleSlice.cc',
tomwalters@13 40 '../src/Modules/Output/FileOutputHTK.cc'],
tomwalters@0 41 swig_opts = ['-c++','-I../src/'],
tomwalters@0 42 include_dirs=['../src/']
tomwalters@0 43 )
tomwalters@0 44
tomwalters@0 45 setup (name = 'aimc',
tomwalters@0 46 version = '0.1',
tomwalters@0 47 author = "Thomas Walters <tom@acousticscale.org>",
tomwalters@0 48 description = """SWIG wrapper round the core of aimc""",
tomwalters@0 49 ext_modules = [aimc_module],
tomwalters@0 50 py_modules = ["aimc"],
tomwalters@0 51 )