镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@audio/tune

Pitch correction (Auto-Tune / Melodyne class).

Package What
@audio/tune-snap scale/key correction — YIN → note segmentation → scale snap → PSOLA retune
@audio/tune-midi melody correction — YIN → per-guide-note median → PSOLA retune to a MIDI/note guide
@audio/tune-curve a drawn pitch curve: the voice's own glottal cycles re-spaced (TD-PSOLA): formants and consonants kept, streaming
import { snap, tuneMidi } from '@audio/tune'

snap(data, { scale: 'major', root: 0 })      // Auto-Tune-class scale correction
tuneMidi(data, { guide: parsedSmf.notes })   // retune to a reference melody
tuneCurve(data, { semitones: { t: [0, 1, 1.5], v: [0, 2, 0] } })   // along a curve, as drawn (Melodyne class)

Composition of existing atoms: @audio/pitch-yin (detect) → scale/target snap → @audio/shift-psola (retune), crossfaded back over the dry signal. Logic "Pitch Correction" / Ableton tuner parity.

About

Pitch correction — umbrella for @audio/tune-* atoms (scale snap, MIDI-target)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages