# Audio Melody Contour Extractor

Extract a dominant melody path from audio and export MIDI, note events, a pitch contour, SVG, and JSON in one ZIP.

> Canonical page: https://elysiatools.com/en/tools/audio-melody-contour-extractor

- **Category:** Media

- **Keywords:** melody extractor, audio to MIDI, pitch contour, Basic Pitch, music transcription

## Overview

Spotify Basic Pitch supplies polyphonic note candidates, then a continuity-aware path selector follows the most plausible dominant melody. If the model returns no usable events for a clearly monophonic signal, a bounded YIN/CMNDF tracker provides a local fallback. Mixed recordings are approximate; isolated vocal or single-instrument recordings are most reliable.

## Inputs

- **Audio file** (file)
- **Onset threshold** (number)
- **Frame threshold** (number)
- **Minimum model note length (frames)** (number)
- **Minimum selected note (ms)** (number)
- **Melody preference** (select)
- **Include pitch bends** (checkbox)

## When to use

- You need an editable MIDI draft of the lead line from a vocal or solo-instrument recording.
- You want note events, a pitch contour, SVG, and JSON for analysis or visualization.
- A mixed take has a clear dominant melody you want to follow approximately, with Higher or Lower voice preference.

## How it works

- Upload one audio file (MP3, WAV, FLAC, M4A, AAC, OGG, Opus, or WebM, up to 100 MB).
- Set onset and frame thresholds, minimum model note length, minimum selected note duration, melody preference (Balanced, Higher voice, or Lower voice), and whether to include pitch bends.
- Basic Pitch supplies note candidates; a continuity-aware path selector traces the dominant melody. If the model returns no usable events on a clearly monophonic signal, a bounded YIN/CMNDF tracker is used as a local fallback.
- Download a ZIP with MIDI, two CSV files, SVG, JSON, and a README.

## Use cases

- Turn an isolated vocal or solo-instrument take into an editable melody MIDI.
- Export a pitch contour SVG plus CSV/JSON for teaching, documentation, or further analysis.
- Follow a dominant line above quieter harmony by preferring Balanced, Higher, or Lower voice.

## Frequently asked questions

### Which audio formats can I upload?

MP3, WAV, FLAC, M4A, AAC, OGG, Opus, and WebM, up to 100 MB.

### What is inside the ZIP?

MIDI, two CSV files (note events and pitch contour), SVG, JSON, and a README.

### When should I choose Higher or Lower voice?

Use Higher voice to favor the upper line, Lower voice for the bass or lower part, and Balanced when the lead is already the most continuous path.

### How well does it work on mixed recordings?

Mixed tracks are approximate. Isolated vocals or a single instrument are the most reliable sources.

### What do onset threshold and frame threshold control?

Onset threshold (default 0.5) and frame threshold (default 0.3) gate how readily Basic Pitch accepts note starts and sustained frames; lower values detect more events, higher values are stricter.

## Related tools

- [Audio Chord Progression Detector](https://elysiatools.com/en/tools/audio-chord-progression-detector): Estimate an audio file's chord sequence locally and download CSV, JSON, SVG, and method notes in one ZIP.
- [Audio to Text Transcriber (AI)](https://elysiatools.com/en/tools/audio-to-text-transcriber): Transcribe speech from audio (wav/mp3/m4a/flac/ogg/webm/aac) to text, SRT, VTT or JSON using the grok-stt AI model. Up to 10 minutes.
- [Audio to Multitrack MIDI (Draft)](https://elysiatools.com/en/tools/audio-to-multitrack-midi): Split a full mix into stems (drums/bass/other/vocals) and transcribe each to MIDI — a multi-track starting point for transcription
- [Batch Audio Converter](https://elysiatools.com/en/tools/audio-batch-converter): Convert multiple audio files between different formats like MP3, WAV, FLAC, AAC, OGG, Opus with quality settings and batch processing
- [Audio Codec Swap](https://elysiatools.com/en/tools/audio-codec-swap): Change the codec of an audio file within a chosen output format
- [Audio Format Converter](https://elysiatools.com/en/tools/audio-converter): Convert audio files between different formats like MP3, WAV, FLAC, AAC, OGG with quality settings and volume adjustment
- [Audio Resample](https://elysiatools.com/en/tools/audio-resample): Change the sample rate of an audio file (e.g., 44.1kHz to 22.05kHz)
- [Audio Cutter](https://elysiatools.com/en/tools/audio-cutter): Cut and extract audio clips from audio files with precise time selection

## Samples

- [Copyright-Free FLAC Audio Samples](https://elysiatools.com/en/samples/flac-samples): Lossless FLAC audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Copyright-Free WAV Audio Samples](https://elysiatools.com/en/samples/wav-samples): Uncompressed PCM WAV audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Copyright-Free M4A Audio Samples](https://elysiatools.com/en/samples/m4a-samples): Apple iTunes compatible M4A audio samples with AAC encoding, optimized for quality and file size balance

## Related content

- [Audio Encoding and Format Conversion Tools](https://elysiatools.com/en/hubs/audio-convert): Compare audio format conversion, bitrate changes, sample-rate conversion, codec swaps, and export tools in one hub for delivery and archive workflows.
- [JSON Interchange and Format Translation Tools](https://elysiatools.com/en/hubs/json-convert): Compare JSON conversion tools for CSV, YAML, TOML, GraphQL, XML, Markdown, Excel, BSON, EDN, and related structured formats in one hub.
- [Audio Editing and Cleanup Tools](https://elysiatools.com/en/hubs/audio-utility): Compare audio trimming, silence removal, fades, mixing, and denoise tools in one hub for podcast, voiceover, and music cleanup workflows.
- [JSON Inspection, Diff, and Transformation Tools](https://elysiatools.com/en/hubs/json-utility): Compare JSON formatting, diffing, path inspection, schema validation, merging, transformation, and export tools in one hub for API and data workflows.
