Changes in / [bd8a92d:ad65346]


Ignore:
Files:
7 added
6 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    rbd8a92d rad65346  
    5454      os: osx
    5555      compiler: clang
    56       env: ARCH=x86_64 WAFOPTS=--enable-fat
     56      env: ARCH=x86_64 WAFOPTS="--enable-fat --disable-sndfile --disable-samplerate --disable-rubberband"
    5757    - language: C
    5858      os: osx
    5959      compiler: clang
    60       env: ARCH=i386 WAFOPTS=--enable-fat
     60      env: ARCH=i386 WAFOPTS="--enable-fat --disable-sndfile --disable-samplerate --disable-rubberband"
    6161
    6262addons:
     
    6969    - libasound2-dev
    7070    - libfftw3-dev
     71    - librubberband-dev
    7172    - sox
    7273
     
    7576     if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    7677       brew update
    77        brew install sox
     78       brew install sox libsamplerate libsndfile rubberband
    7879       export PATH="$HOME/Library/Python/2.7/bin/:$PATH"
    7980     fi;
  • python/lib/gen_code.py

    rbd8a92d rad65346  
    2020    'method': '"default"',
    2121    'uri': '"none"',
     22    'transpose': '0.',
    2223    }
    2324
     
    8384        'filterbank': 'self->n_filters',
    8485        'tss': 'self->buf_size',
     86        'pitchshift': 'self->hop_size',
    8587        }
    8688
     
    9597        'wavetable': 'self->hop_size',
    9698        'tss': 'self->buf_size / 2 + 1',
     99        'pitchshift': 'self->hop_size',
    97100        }
    98101
     
    266269        if p['type'] == 'char_t*':
    267270            return self.check_valid_char(p)
     271        if p['type'] == 'smpl_t':
     272            return self.check_valid_smpl(p)
    268273        else:
    269274            print ("ERROR, no idea how to check %s for validity" % p['type'])
     
    286291    self->{name} = {defval};
    287292    if ({name} != NULL) {{
     293        self->{name} = {name};
     294    }}
     295""".format(defval = aubiodefvalue[name], name = name)
     296
     297    def check_valid_smpl(self, p):
     298        name = p['name']
     299        return """
     300    self->{name} = {defval};
     301    if ({name} != 0.) {{
    288302        self->{name} = {name};
    289303    }}
  • python/lib/moresetuptools.py

    rbd8a92d rad65346  
    7575                'jack',
    7676                'sndfile', 'samplerate',
     77                'rubberband',
    7778                #'fftw3f',
    7879               ]
     
    8990    if 'samplerate' in ext.libraries:
    9091        ext.define_macros += [('HAVE_SAMPLERATE', 1)]
     92    if 'rubberband' in ext.libraries:
     93        ext.define_macros += [('HAVE_RUBBERBAND', 1)]
    9194    if 'fftw3f' in ext.libraries:
    9295        ext.define_macros += [('HAVE_FFTW3F', 1)]
  • src/aubio.h

    rbd8a92d rad65346  
    216216#include "pitch/pitchspecacf.h"
    217217#include "tempo/beattracking.h"
     218#include "effects/pitchshift.h"
    218219#include "utils/scale.h"
    219220#include "utils/hist.h"
  • src/wscript_build

    rbd8a92d rad65346  
    66uselib += ['SAMPLERATE']
    77uselib += ['SNDFILE']
     8uselib += ['RUBBERBAND']
    89uselib += ['AVCODEC']
    910uselib += ['AVFORMAT']
  • wscript

    rbd8a92d rad65346  
    6969            help_str = 'compile with samplerate (auto)',
    7070            help_disable_str = 'disable samplerate')
     71    add_option_enable_disable(ctx, 'rubberband', default = None,
     72            help_str = 'compile with rubberband (auto)',
     73            help_disable_str = 'disable rubberband')
    7174    add_option_enable_disable(ctx, 'memcpy', default = True,
    7275            help_str = 'use memcpy hacks (default)',
     
    261264                mandatory = ctx.options.enable_samplerate)
    262265
     266    # check for librubberband
     267    if (ctx.options.enable_rubberband != False):
     268        ctx.check_cfg(package = 'rubberband', atleast_version = '1.3',
     269                args = '--cflags --libs',
     270                mandatory = ctx.options.enable_rubberband)
     271
    263272    # check for jack
    264273    if (ctx.options.enable_jack != False):
Note: See TracChangeset for help on using the changeset viewer.