KNOB FX SD card 2 stars 1.2.0

Pitch Snap

A real-time auto-tune Knob FX that snaps vocals and other monophonic sources to any of the 12 keys and 18 scales, with independent formant shift, an out-of-tune threshold and adjustable retune speed (from natural glide to hard robotic snap). Runs as a stock Custom Plug-In insert from the SD card.

About

A real-time auto-tune insert effect for Akai MPC standalones and the MPC Sample (as Knob FX), by Justin Knight.

It detects the pitch of a monophonic source (vocals, a lead synth, a bass line), works out the nearest note in the chosen key and scale, and retunes the audio to that note. Formants (the "vowel" character of a voice) are preserved and can be shifted on their own knob.

MPC Sample Knob FX mapping

Knob Normal SHIFT held
1 Scale Thresh (Threshold)
2 Key Speed
3 Formant Input

Parameters

# Name Range Default What it does
1 Scale 18 scales Chromatic Which notes are allowed (list below).
2 Key C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B C Root note of the scale.
3 Formant −12 to +12 st 0.0 Shifts formants without changing pitch. − = deeper, bigger voice; + = smaller, brighter voice.
4 Threshold 0–100 % 0 % How far out of tune a note must be before it's corrected. 0 % tunes everything and 100 % tunes nothing. 50 % only corrects notes more than halfway from an in-key note to the midpoint with the next in-key note (in Chromatic that's 25 cents, in Major between two whole-tone neighbours 50 cents). Notes inside the threshold pass through untouched. The decision uses the note's centre pitch (a ~120 ms average), so vibrato doesn't switch the correction on and off; when a note does cross the threshold the correction fades in or out over ~50 ms. 5 % hysteresis stops flicker at the edge.
5 Speed 0–100 % 85 % Retune speed. 100 % = instant snap (the hard "robot" effect). Lower values glide into notes and let vibrato through (0 % ≈ 400 ms).
6 Input Merge, Left, Right, L Mono, R Mono Merge Merge, Left and Right choose which channel the pitch detector listens to, and both channels are still retuned. Merge listens to L+R and automatically switches to the louder channel when the two cancel (out-of-phase or very wide stereo samples). L Mono and R Mono keep only that channel: it is tuned and sent to both outputs, and the other channel is dropped. Changing mode crossfades over ~20 ms.

Scales

Chromatic, Major, Minor (natural), Harm Min (harmonic minor), Mel Min (melodic minor), Maj Pent, Min Pent, Blues, Dorian, Phrygian, Lydian, Mixolyd (Mixolydian), Locrian, Phryg Dom (Phrygian dominant), Dbl Harm (double harmonic), Hirajoshi, Whole Tn (whole tone), Dim (diminished, whole–half).

All 12 keys work with every scale.

Built-in programs

Default, Hard Tune, Natural (Speed 45 %, Threshold 30 %), C Minor, Deep, Bright. Program 0 ("Default") is the one the MPC Sample loads.

How it works

  • Pitch detection: YIN on the detector signal (chosen by Input), highpassed at 100 Hz to remove hum, wind and handling rumble and then lowpassed, decimated to about 11 kHz, updated every sample and read every ~4.4 ms. Range is 80 Hz–1 kHz (E2 to about B5). A harmonic check catches YIN locking onto the 2nd or 3rd harmonic, a jump of more than 4 semitones must persist for ~13 ms before it's accepted, and notes above ~440 Hz are refined at the full sample rate.
  • Note choice: nearest note in the key and scale, with 0.2 semitones of hysteresis so it doesn't flip between two notes when you sing right between them. The Threshold then decides whether that note is far enough off to correct.
  • Silence floor: input below −60 dB is never retuned, so noise and reverb tails pass through.
  • Retuning: TD-PSOLA. Grains are cut at the waveform peaks and run from the previous grain's centre to the next one's, so neighbouring windows always sum to 1. Output grains follow the input marks one-for-one at a fixed whole-sample delay and only repeat (pitch up) or skip (pitch down) a period when the pitch is actually being changed. With no correction the output is the input, sample for sample, just delayed. Formants are preserved because each grain keeps its spectral envelope; Formant resamples each grain. A level-matcher keeps the wet level equal to the dry level.
  • Latency: 1107 samples (about 25 ms at 44.1 kHz), reported to the host.
  • CPU: about 0.15 % of a desktop core on average, spread evenly across audio blocks. The pitch detector updates a little every sample instead of in one burst every 4 ms, so no single block is much heavier than the rest.

Limits

  • Monophonic sources only. Chords, full mixes or drums confuse the pitch detector. Put it on the vocal track, not the master.
  • Input stereo is kept. Pitch is detected from one signal (see Input), so if the left and right channels hold different melodies, only the one being listened to is tuned correctly.
  • Output is always 100 % processed (no dry/wet control).
  • Notes below 80 Hz aren't detected and pass through unchanged.

Licence

MIT. All DSP is original code written for this plugin. YIN is from de Cheveigné & Kawahara (2002), and TD-PSOLA is the standard published technique.

Recent releases

  • Release notes

    Pitch Snap 1.2.0

    New: Input control (SHIFT + knob 3) Choose which channel Pitch Snap listens to and plays:

    Merge (default): listens to both channels together. Left / Right: read the pitch from one side, but still tune both. L Mono / R Mono: keep only that side, tuned, on both outputs.

    Fixes

    Stereo samples whose channels cancel each other out (common with wide stereo effects) now get tuned. Merge detects this and switches to the louder channel automatically. Phone and field recordings with mains hum, wind or handling noise now get tuned. The pitch detector ignores everything below 100 Hz. This only affects what the plugin listens to, not what you hear.

    Install: unzip, then copy the Justin Knight - VST - Pitch Snap folder into VST2 Plugins on your MPC Sample's SD card, replacing the old one. Requires MPC Sample firmware 1.4.0 or later with Custom Plug-In Support turned on.

  • Release notes

    Changelog

    All notable changes to Pitch Snap.

    1.1.0

    This release is about sound quality. If you heard pops or little glitches in 1.0.0, this update fixes them.

    Fixed

    • Popping and clicking. Pitch Snap rebuilds your audio to retune it. In 1.0.0 that rebuild was slightly imperfect: every so often it dropped or repeated one cycle of the waveform, which you heard as a pop. The rebuild has been rewritten. When a note doesn't need correcting, it now passes through untouched, apart from the plugin's fixed delay. That includes when Threshold is at 100 % or a note is already in tune.
    • Warbling when using Threshold. The tune-or-don't-tune decision used to be made on the instantaneous pitch. Natural vibrato crossed the threshold several times a second and switched the correction on and off, causing a fast warble. The decision is now made on each note's average pitch, so in-tune notes keep their natural vibrato. When a note does cross the threshold, the correction fades in or out over about 50 ms instead of jumping.
    • Notes occasionally retuned to the wrong pitch. On voices with a strong 2nd or 3rd harmonic (common with "ah" and "oh" vowels), the pitch detector could mistake the harmonic for the note and retune by the wrong amount. It now checks for this. A sudden jump of more than 4 semitones also has to last about 13 ms before the plugin believes it.
    • Clicks when pulling notes down. A bug made the plugin's internal delay creep up while correcting flat-going notes until it reset with a click. Fixed.
    • Slightly off results on high notes. Notes above roughly 440 Hz are now measured more precisely, so they land within a cent of the target instead of up to 7 cents off.

    Improved

    • About 5× less CPU use. The pitch detector now does a small, even amount of work every sample instead of a burst every few milliseconds. Every audio block is the same weight, which matters most on smaller MPCs like the MPC Sample.
    • Steady volume across all Formant settings. Moving the Formant knob no longer changes the level.

Something wrong or missing?

Suggest an edit on GitHub — accepted changes credit you as a contributor.