Changes in / [f19db54:633400d]


Ignore:
Files:
7 added
6 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    rf19db54 r633400d  
    3434      os: osx
    3535      compiler: clang
    36       env: WAFOPTS="--enable-fat --disable-avcodec --disable-sndfile"
     36      env: WAFOPTS="--enable-fat --disable-avcodec --disable-sndfile --disable-samplerate --disable-rubberband"
    3737    - language: C
    3838      os: osx
     
    6161    - libasound2-dev
    6262    - libfftw3-dev
     63    - librubberband-dev
    6364    - sox
    6465    - lcov
     
    6869    - ffmpeg
    6970    - libsndfile
     71    - libsamplerate
     72    - rubberband
    7073    - lcov
    7174    #update: true
  • python/lib/gen_code.py

    rf19db54 r633400d  
    2121    'method': '"default"',
    2222    'uri': '"none"',
     23    'transpose': '0.',
    2324    }
    2425
     
    8485        'filterbank': 'self->n_filters',
    8586        'tss': 'self->buf_size',
     87        'pitchshift': 'self->hop_size',
    8688        'dct': 'self->size',
    8789        }
     
    9799        'wavetable': 'self->hop_size',
    98100        'tss': 'self->buf_size / 2 + 1',
     101        'pitchshift': 'self->hop_size',
    99102        }
    100103
     
    281284        if p['type'] == 'char_t*':
    282285            return self.check_valid_char(p)
     286        if p['type'] == 'smpl_t':
     287            return self.check_valid_smpl(p)
    283288        else:
    284289            print ("ERROR, no idea how to check %s for validity" % p['type'])
     
    301306    self->{name} = {defval};
    302307    if ({name} != NULL) {{
     308        self->{name} = {name};
     309    }}
     310""".format(defval = aubiodefvalue[name], name = name)
     311
     312    def check_valid_smpl(self, p):
     313        name = p['name']
     314        return """
     315    self->{name} = {defval};
     316    if ({name} != 0.) {{
    303317        self->{name} = {name};
    304318    }}
  • python/lib/moresetuptools.py

    rf19db54 r633400d  
    7979    packages = ['libavcodec', 'libavformat', 'libavutil',
    8080                'libswresample', 'libavresample',
     81                'jack',
    8182                'sndfile',
     83                'rubberband',
    8284                #'fftw3f',
    8385               ]
     
    101103    if 'samplerate' in ext.libraries:
    102104        ext.define_macros += [('HAVE_SAMPLERATE', 1)]
     105    if 'rubberband' in ext.libraries:
     106        ext.define_macros += [('HAVE_RUBBERBAND', 1)]
    103107    if 'fftw3f' in ext.libraries:
    104108        ext.define_macros += [('HAVE_FFTW3F', 1)]
  • src/aubio.h

    rf19db54 r633400d  
    221221#include "pitch/pitchspecacf.h"
    222222#include "tempo/beattracking.h"
     223#include "effects/pitchshift.h"
    223224#include "utils/scale.h"
    224225#include "utils/hist.h"
  • src/wscript_build

    rf19db54 r633400d  
    77uselib += ['SAMPLERATE']
    88uselib += ['SNDFILE']
     9uselib += ['RUBBERBAND']
    910uselib += ['AVCODEC']
    1011uselib += ['AVFORMAT']
  • wscript

    rf19db54 r633400d  
    7070            help_str = 'compile with samplerate (auto)',
    7171            help_disable_str = 'disable samplerate')
     72    add_option_enable_disable(ctx, 'rubberband', default = None,
     73            help_str = 'compile with rubberband (auto)',
     74            help_disable_str = 'disable rubberband')
    7275    add_option_enable_disable(ctx, 'memcpy', default = True,
    7376            help_str = 'use memcpy hacks (default)',
     
    380383                args = '--cflags --libs samplerate >= 0.0.15',
    381384                mandatory = ctx.options.enable_samplerate)
     385
     386    # check for librubberband
     387    if (ctx.options.enable_rubberband != False):
     388        ctx.check_cfg(package = 'rubberband', atleast_version = '1.3',
     389                args = '--cflags --libs',
     390                mandatory = ctx.options.enable_rubberband)
    382391
    383392    # check for jack
Note: See TracChangeset for help on using the changeset viewer.