Skip to content
claeslanngPublic

About

RECAST: additive resynthesis VST3 instrument for Windows. Turns any sample into a playable synth: 512 partials + noise, stretch, freeze, smart loops, formant shift, A/B morph. By Claes Lanng Plugins.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

RECAST

Additive resynthesis instrument (VST3 + standalone, Windows) by Claes Lanng Plugins.

Drop in a sample and RECAST rebuilds it as a playable synth: up to 512 sine partials per channel, a shaped noise layer and the original attack. Play it polyphonically or as a mono lead, stretch it without changing pitch, freeze it, loop it seamlessly, shift its formants, and morph it into a second sound.

RECAST, Midnight skin

Features

  • Resynthesis that sounds like the source. On 12 test sounds (cello, flute, piano, synths, a shaker and more) it averages 83.8 / 100 on the similarity score from the original prototype, which scored 83. Left and right are analysed separately, so wide stereo sounds stay wide.
  • Two samples, A and B. Morph from A to B harmonic by harmonic. Each sample's root note is detected automatically; correct it with Root / B Root, or detune B with B Tune. Swap A and B with one click (and back).
  • Playback: Stretch (0.25–4x, pitch unchanged), Position, Freeze, and Loop with a partial-by-partial crossfade.
  • Smart loops: FIND picks loop points where the sound matches itself. SNAP moves your own loop points to nearby matching moments, so held notes loop without bumps or ticks.
  • Tone: harmonic / noise balance, transient level, number of partials, inharmonicity, formant shift and formant preserve, blur.
  • Poly or mono: 16-voice polyphony for chords, or mono with legato and glide for leads and basses.
  • Partial map of sample A or B with playheads for every note, plus a live harmonic / noise balance view.
  • Undo / redo for every change, including loaded samples (Ctrl+Z / Ctrl+Y).
  • 24 factory presets. Your own presets store both samples, so they work anywhere.
  • 3 skins: Midnight, Ember and Arctic.
  • Projects store the analysis, so they reopen even if the original samples are gone.
  • Hover help on every control, a resizable UI that stays sharp at any Windows scaling, and an About page (click the logo).
Ember Arctic
Ember skin Arctic skin

Download and install

Download the latest RECAST-windows-x64.zip from Releases, then:

  1. Close your DAW.
  2. Copy RECAST.vst3 into C:\Program Files\Common Files\VST3\ (for example into C:\Program Files\Common Files\VST3\CLAES LANNG PLUGINS\). Windows asks for admin rights for that folder.
  3. FL Studio: Options → Manage plugins → Find installed plugins. RECAST appears under Generators.
  4. RECAST.exe is the standalone version: it needs no DAW. Pick your audio and MIDI devices under Options.

If you build it yourself, install.ps1 (run from an admin PowerShell in this folder) does steps 2–3 for you. It also removes copies of the older SPECTRA builds; RECAST was called SPECTRA before v1.1.0. Projects and presets saved with SPECTRA open in RECAST.

Using it

  1. Drop a sample on A (or on the partial map), or click A to browse.
  2. Play. The detected root note plays the sample as recorded. Other keys transpose the partials, so the timing stays the same.
  3. Optional: load a second sound on B and turn Morph. Use the A / B tabs on the map to look at either sound, and ⇄ to swap them.
  4. For sustained sounds, click LOOP, then FIND, and hold a key.
  5. Presets live in Documents\Claes Lanng Plugins\RECAST\Presets.

Note names follow FL Studio: middle C (MIDI 60, 261.6 Hz) is C5.

Building from source

You need Visual Studio 2022 (or its Build Tools) with Desktop development with C++, CMake 3.22+ and Git.

cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release --parallel

The first configure downloads JUCE 8.0.15 (about 150 MB). Outputs:

What Where
VST3 plugin build\RECAST_artefacts\Release\VST3\RECAST.vst3
Standalone app build\RECAST_artefacts\Release\Standalone\RECAST.exe
Tools and tests build\recast_*_artefacts\Release\recast_*.exe

Tools

Tool What it does
recast_render Analyse and resynthesise files; --score rates them against the originals, --semis -12,0,12 renders transpositions
recast_score Similarity score of any render against its original
recast_bench CPU use of 16 voices per Quality setting
recast_demo Renders stretch, freeze, loop, formant and morph examples
recast_plugintest Drives the real plugin: MIDI, voice stealing, mono / poly, swap, loops, undo, presets, state
recast_presetrender Plays a preset and reports clicks and loop quality

Every release is checked with pluginval at strictness 10.

How it works

  1. Analysis (when a sample is loaded, on a background thread): YIN pitch detection. Then per channel, sinusoidal peak picking (Hann window, 2x zero-padded zero-phase FFT, parabolic interpolation), partial tracking into oscillator slots, and phase-derived frequencies so oscillators land on the original phases. The rest becomes the noise residual (128 ERB bands with left/right coherence) and a 30 ms attack transient.
  2. Synthesis (per voice, real time): an AVX2 / SSE complex-rotator oscillator bank with 32-sample amplitude ramps, partials above 0.45 x the sample rate dropped, random-phase FFT noise shaped by the stored bands, and the transient crossfaded into the model.

MILESTONES.md documents how it was built, step by step, with measurements.

Licence

Copyright © 2026 Claes Lanng Plugins.

RECAST is free software, released under the GNU Affero General Public License v3.0 (see LICENSE). You may use, study, change and share it. If you distribute it or a modified version (including offering it over a network), you must make the complete source code available under the same licence.

RECAST is built with JUCE, which is used here under its AGPLv3 option.

About

RECAST: additive resynthesis VST3 instrument for Windows. Turns any sample into a playable synth: 512 partials + noise, stretch, freeze, smart loops, formant shift, A/B morph. By Claes Lanng Plugins.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages