Changes in / [66e8265:8197dbd]


Ignore:
Files:
11 added
7 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    r66e8265 r8197dbd  
    4141      os: osx
    4242      osx_image: xcode10
    43       env: CFLAGS="-Os" HAVE_AUBIO_DOUBLE=1 WAFOPTS="--disable-accelerate --disable-avcodec --disable-sndfile --disable-samplerate"
     43      env: CFLAGS="-Os" HAVE_AUBIO_DOUBLE=1 WAFOPTS="--disable-accelerate --disable-avcodec --disable-sndfile --disable-samplerate --disable-rubberband"
    4444    - name: "iOS"
    4545      language: shell
    4646      os: osx
    47       env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile --disable-samplerate" AUBIO_NOTESTS=1
     47      env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile --disable-samplerate --disable-rubberband" AUBIO_NOTESTS=1
    4848    - name: "iOSSimulator"
    4949      language: shell
    5050      os: osx
    51       env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile --disable-samplerate" AUBIO_NOTESTS=1
     51      env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile --disable-samplerate --disable-rubberband" AUBIO_NOTESTS=1
    5252
    5353#    - name: "Windows (Python 3.8.0, lib only)"
     
    7373    - libasound2-dev
    7474    - libfftw3-dev
     75    - librubberband-dev
    7576    - sox
    7677    - lcov
     
    8081    - ffmpeg
    8182    - libsndfile
     83    - libsamplerate
     84    - rubberband
    8285    - lcov
    8386    update: true
  • python/lib/gen_code.py

    r66e8265 r8197dbd  
    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
     
    291294        if p['type'] == 'char_t*':
    292295            return self.check_valid_char(p)
     296        if p['type'] == 'smpl_t':
     297            return self.check_valid_smpl(p)
    293298        else:
    294299            print ("ERROR, no idea how to check %s for validity" % p['type'])
     
    311316    self->{name} = {defval};
    312317    if ({name} != NULL) {{
     318        self->{name} = {name};
     319    }}
     320""".format(defval = aubiodefvalue[name], name = name)
     321
     322    def check_valid_smpl(self, p):
     323        name = p['name']
     324        return """
     325    self->{name} = {defval};
     326    if ({name} != 0.) {{
    313327        self->{name} = {name};
    314328    }}
  • python/lib/gen_external.py

    r66e8265 r8197dbd  
    4747    'audio_unit',
    4848    'spectral_whitening',
     49    'timestretch', # TODO fix parsing of uint_t *read in _do
    4950]
    5051
  • python/lib/moresetuptools.py

    r66e8265 r8197dbd  
    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

    r66e8265 r8197dbd  
    221221#include "pitch/pitchspecacf.h"
    222222#include "tempo/beattracking.h"
     223#include "effects/pitchshift.h"
     224#include "effects/timestretch.h"
    223225#include "utils/scale.h"
    224226#include "utils/hist.h"
  • src/wscript_build

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

    r66e8265 r8197dbd  
    7373            help_str = 'compile with samplerate (auto)',
    7474            help_disable_str = 'disable samplerate')
     75    add_option_enable_disable(ctx, 'rubberband', default = None,
     76            help_str = 'compile with rubberband (auto)',
     77            help_disable_str = 'disable rubberband')
    7578    add_option_enable_disable(ctx, 'memcpy', default = True,
    7679            help_str = 'use memcpy hacks (default)',
     
    384387                args = '--cflags --libs samplerate >= 0.0.15',
    385388                mandatory = ctx.options.enable_samplerate)
     389
     390    # check for librubberband
     391    if (ctx.options.enable_rubberband != False):
     392        ctx.check_cfg(package = 'rubberband', atleast_version = '1.3',
     393                args = '--cflags --libs',
     394                mandatory = ctx.options.enable_rubberband)
    386395
    387396    # check for jack
Note: See TracChangeset for help on using the changeset viewer.