ola

Add and overlap timestretch algorithm

The overlap and add is the simplest, cheaper (in terms of computation) and less quality timestretch algorithm. It changes the length of a buffer without changing it's pitch.

npm install dsp-ola

This is part of dsp-kit

Source:
Examples
var ola = require('dsp-ola')
const stretch = ola.overlapAdd({ size: 1024 })
const halfSize = stretch(0.5, audioBuffer)
var dsp = require('dsp-kit')
Source:
Examples
var ola = require('dsp-ola')
const stretch = ola.overlapAdd({ size: 1024 })
const halfSize = stretch(0.5, audioBuffer)
var dsp = require('dsp-kit')

Methods

(static) overlapAdd(options) → {function}

Create a timestretch function using an overlap and add algorithm

Parameters:
Name Type Description
options Object
Source:
Returns:

the timestretch function

Type
function
Example
const stretch = ola.overlapAdd()
stretch(0.5, audio) // => a new audio buffer half of the length

(static) overlapAdd(options) → {function}

Create a timestretch function using an overlap and add algorithm

Parameters:
Name Type Description
options Object
Source:
Returns:

the timestretch function

Type
function
Example
const stretch = ola.overlapAdd()
stretch(0.5, audio) // => a new audio buffer half of the length

Add and overlap timestretch algorithm

The overlap and add is the simplest, cheaper (in terms of computation) and less quality timestretch algorithm. It changes the length of a buffer without changing it's pitch.

npm install dsp-ola

This is part of dsp-kit

Source:
Examples
var ola = require('dsp-ola')
const stretch = ola.overlapAdd({ size: 1024 })
const halfSize = stretch(0.5, audioBuffer)
var dsp = require('dsp-kit')
Source:
Examples
var ola = require('dsp-ola')
const stretch = ola.overlapAdd({ size: 1024 })
const halfSize = stretch(0.5, audioBuffer)
var dsp = require('dsp-kit')

Methods

(static) overlapAdd(options) → {function}

Create a timestretch function using an overlap and add algorithm

Parameters:
Name Type Description
options Object
Source:
Returns:

the timestretch function

Type
function
Example
const stretch = ola.overlapAdd()
stretch(0.5, audio) // => a new audio buffer half of the length

(static) overlapAdd(options) → {function}

Create a timestretch function using an overlap and add algorithm

Parameters:
Name Type Description
options Object
Source:
Returns:

the timestretch function

Type
function
Example
const stretch = ola.overlapAdd()
stretch(0.5, audio) // => a new audio buffer half of the length