Changes in / [fa5d8ad:8ba8bbe]


Ignore:
Files:
5 added
6 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    rfa5d8ad r8ba8bbe  
    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

    rfa5d8ad r8ba8bbe  
    2020    'method': '"default"',
    2121    'uri': '"none"',
     22    'pitchscale': '1.',
    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

    rfa5d8ad r8ba8bbe  
    7474                'jack',
    7575                'sndfile', 'samplerate',
     76                'rubberband',
    7677                #'fftw3f',
    7778               ]
     
    8889    if 'samplerate' in ext.libraries:
    8990        ext.define_macros += [('HAVE_SAMPLERATE', 1)]
     91    if 'rubberband' in ext.libraries:
     92        ext.define_macros += [('HAVE_RUBBERBAND', 1)]
    9093    if 'fftw3f' in ext.libraries:
    9194        ext.define_macros += [('HAVE_FFTW3F', 1)]
  • src/aubio.h

    rfa5d8ad r8ba8bbe  
    208208#include "pitch/pitchspecacf.h"
    209209#include "tempo/beattracking.h"
     210#include "effects/pitchshift.h"
    210211#include "utils/scale.h"
    211212#include "utils/hist.h"
  • src/wscript_build

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

    rfa5d8ad r8ba8bbe  
    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)',
     
    260263                mandatory = ctx.options.enable_samplerate)
    261264
     265    # check for librubberband
     266    if (ctx.options.enable_rubberband != False):
     267        ctx.check_cfg(package = 'rubberband', atleast_version = '1.3',
     268                args = '--cflags --libs',
     269                mandatory = ctx.options.enable_rubberband)
     270
    262271    # check for jack
    263272    if (ctx.options.enable_jack != False):
Note: See TracChangeset for help on using the changeset viewer.