audio

@audio/spatial-microshift1.2.0

Micro-pitch stereo widener

Micro-pitch stereo widener — ±cents detuned copies (H3000 MicroShift class)

Status
calibrated
Updated
Family
spatial, 12 packages under it
Plugin
microshift, effect, streaming, 2 parameters
Category
effects
Licence
MIT
Dependencies
none
Downloads
3,086 last month
Tests
66 in audiojs/spatial's CI, passed at 656b55c,

Listen

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
audio('/samples/music/modern/local-forecast.mp3').microshift()

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html

Parameters

  • effect
  • streaming
  • tail
cents
9 cents
1 to 50 cents
mix
0.5
0 to 1
import microshift from '@audio/spatial-microshift'

Eventide H3000 MicroShift class: left is pitch-shifted up a few cents, right down, each via a 2-head varispeed ring reader, then blended with the dry signal. The pitch offset (rather than a delay) is what gives the width its shimmer. Takes [left, right] and an opts object; returns a new [left, right] pair.

microshift([left, right], { cents: 9, mix: 0.5 })
Param Default
cents 9 Detune amount, cents (L up, R down)
mix 0.5 Dry/wet, 0..1
fs 44100 Sample rate

For a host's block, head(cents, size) makes one reader's ring and state and shift(head, x, y, mix, moving) runs x through it into y, the mix mix[0] (an array, as a host hands a value), or mix[i] for sample i while moving is 1; it allocates nothing. The audio.js manifest glides a host's ramp of mix sample by sample so. Setting head.st[2] to 2 ** (cents / 1200) between blocks changes the detune: the read goes on from where it is, so the pitch moves and nothing jumps (the audio.js manifest's cents is live so).

Use when: subtle stereo widening with a pitch-modulation character, distinct from mid/side widening (spatial-widener) or delay-based widening (spatial-haas).


Part of @audio/spatial — the spatial family umbrella.

MIT © audiojs