Skip to content
ReggieSackeyPublic

About

A plugin that listens to what you sing or play and harmonizes with you in real time. VST3 + AU.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Euphonia

A real-time automatic harmony plugin for vocals and monophonic instruments.

Euphonia listens to a single melodic line, detects its pitch in real time, and sings along — generating up to four pitch-shifted harmony voices that follow your notes and your music theory settings. Built as a modern JUCE audio effect (VST3 + AU, macOS) on top of Signalsmith Stretch for production-quality pitch shifting.

Status: v1.0.0 — feature-complete V1, 825/825 tests passing, validated with pluginval (strictness 10) and auval (10/10). macOS Apple Silicon first; other platforms later.

What it does

Sing or play one note at a time — Euphonia adds the rest of the chord:

  • Four independent harmony voices, each with enable/solo, level, pan, and an interval or chord-tone assignment.
  • Three harmony sources:
    • Scale mode — diatonic harmony inside a chosen key/scale (Major/Minor), with each voice at a Third/Fifth/Octave above or below. Out-of-scale notes fade gracefully.
    • Chord mode — a chromatic chord stack built from the detected root note: 7 chord types (maj, min, maj7, min7, dom7, sus2, sus4), voicings (Close, Open, Drop Octave) and inversions (Root, 1st, 2nd, Auto).
    • MIDI mode — hold any chord on a MIDI keyboard (or route MIDI from your DAW) and the harmony intervals mirror the relative structure of that chord, transposed to whatever you sing.
  • Voice leading — optional smart octave placement that minimizes movement between successive chords, so progressions flow instead of jumping.
  • Voice character (Humanize) — per-voice detune (±25 cents), micro-timing (0–40 ms), and formant shift, scaled by one global Humanize knob. Perfect for turning a clone stack into something that sounds like real singers.
  • Input pitch bends and vibrato are mirrored — the harmony follows your expression, not just your note names.
  • Factory + user presets with a built-in browser (save/rename/delete), and full DAW project save/restore.
  • Output protection — zero-latency soft saturation ceiling (±0.95) with NaN/Inf sanitization, so a hot stack never digital-clips into your bus.

Signal path

Audio in ─→ Pitch detection (MPM/NSDF) ─→ Note tracking ─┬─────────────────→ dry (delay-compensated)
                                                          │
              Key/Scale/Chord/MIDI decisions ─────────────┤
              Voice leading + inversions                  │
                                                          ▼
                                    4× Signalsmith Stretch pitch shifters
                                    (+ detune / timing / formant per voice)
                                                          │
                                              Equal-power pan + level
                                                          ▼
                                    Mix + output protection (±0.95 ceiling)

Plugin facts

Formats VST3, AU (aumf music effect)
Platforms macOS (Apple Silicon, native arm64)
Category Audio effect (Fx) — not a synth
MIDI Input: yes (harmony control) · Output: no
Channels mono→mono, stereo→stereo
Latency ~120 ms (dry-compensated; exact per rate: 5292/5760/10584/11520 samples @ 44.1/48/88.2/96 kHz)
Parameters 43, all host-automatable
Tail 0.30 s
Version 1.0.0

Building

Requirements:

  • CMake 3.22+ (or the CMake app)
  • Xcode command-line tools
  • JUCE + Signalsmith libraries (git submodules — clone recursively)
git clone --recursive https://github.com/ReggieSackey/euphonia.git
cd euphonia
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --target Euphonia_ALL

This builds and (on macOS) copies Euphonia.vst3 to ~/Library/Audio/Plug-Ins/VST3/ (and the AU to ~/Library/Audio/Plug-Ins/Components/ when built).

License note: JUCE is AGPLv3/commercial dual-licensed. Building or distributing this repository's plugin form requires either AGPLv3 compliance or a JUCE commercial license. Signalsmith Stretch/Linear are MIT.

Tests

The project carries its own dependency-free test harnesses (825 checks):

cmake --build build --target harmony_tests pitch_tests shifter_tests \
    protection_tests midi_tracker_tests chord_tests voicleading_tests \
    midi_harmony_tests harmony_integration_tests
# plus GUI-app suites: reliability, presettests, statebench, compatibility

Coverage includes pitch detection, shifter DSP, music-theory engines (chord/voice-leading/MIDI), 4-voice integration, output protection, reliability (NaN/Inf, block-size, sample-rate, multi-instance), presets, and a full DAW-compatibility suite (editor lifecycle, automation, state round-trips, latency/PDC, bypass, offline determinism).

Project layout

euphonia/
├── CMakeLists.txt       # CMake + juce_add_plugin (VST3 + AU)
├── external/            # JUCE, signalsmith-stretch, signalsmith-linear (submodules)
├── Source/
│   ├── Analysis/        # PitchDetector (MPM/NSDF), PitchTracker
│   ├── DSP/             # PitchShifter (Stretch wrapper), HarmonyVoice, OutputProtection
│   ├── Harmony/         # HarmonyEngine, ChordEngine, ChordLibrary,
│   │                    # VoiceLeadingEngine, MidiChordTracker, MidiHarmonyEngine
│   ├── Params/          # EuphoniaParams (all 43 APVTS parameters)
│   ├── Presets/         # PresetManager (factory + user presets, .euphonia format)
│   ├── UI/              # LookAndFeel, theme, voice cards, custom components
│   ├── PluginProcessor.*
│   └── PluginEditor.*
├── tests/               # Standalone test suites (no framework)
└── tools/               # Dev-only UI snapshot/pixel-audit utilities

Compatibility & validation

  • pluginval (JUCE official VST3 validator): SUCCESS at strictness 5 and 10 — parameters, state, buses, editor lifecycle, realtime checks.
  • auval: 10/10 PASS (aumf EuPh EuPj).
  • Block sizes 32–2048 (+ larger host blocks safely chunked), sample rates 44.1/48/88.2/96 kHz, offline/realtime render parity, bit-identical offline determinism, latency-matched bypass (PDC-safe), 16-instance isolation.

Roadmap

  • Windows builds
  • Manual DAW matrices for Ableton / REAPER / Logic
  • Packaging milestone (installer, code signing, notarization)

Credits

Built by Reggie Sackey. Harmony DSP by Signalsmith Stretch. UI in Inter. Made with JUCE.

About

A plugin that listens to what you sing or play and harmonizes with you in real time. VST3 + AU.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages