← Showcases

Hum-to-MIDI & Practice Loop Studio

About & Code

Standalone App & PWA

Opens on its own origin so you can install it as a standalone desktop/mobile PWA (uses its own separate local model cache).

Open melody.webai.show β†—

Staying on webai.show shares Basic Pitch, CREPE & DistilHuBERT weights across all showcases.

1 Β· Chained Local Music Workers (Shared Cache Storage Β· ~26.3 MB Total WASM)

Stage 1 Β· Basic Pitch Polyphonic MIDI (~0.3 MB fp32 WASM Β· Apache-2.0)

Stage 2 Β· CREPE Cent-Accurate Pitch (~2 MB fp32 WASM Β· MIT)

Stage 3 Β· DistilHuBERT 10-Genre Matcher (~24 MB q8 WASM Β· Apache-2.0)

2 Β· Interactive Pitch Tuner, Piano Roll & Practice Loop Workbench

Loading default musical preset…

Initialise Basic Pitch (0.3 MB), CREPE (2 MB), and/or DistilHuBERT Genre (24 MB) above to begin real local music analysis.

Chromatic Tuner

CREPE
β€”
0Β’ β€” Hz

unvoiced

Stage 2 Β· CREPE Cent-Accurate Pitch Ribbon (16 kHz f0 Contour)

Hover or scrub along the ribbon to inspect exact Hz and cents deviation.

Stage 1 + 2 Β· Editable Piano Roll, CREPE Pitch Bends & Draggable A–B Loop

Click any note bar to inspect and audition, or switch to Draw Note to sketch new notes.

Detected Chord Progression

6-String Guitar TAB (Standard Tuning: e B G D A E Β· Frets 0–20)

Inspect copyable ASCII Guitar TAB
e|------------------------------------------------|

Practice Loop & Audition Transport (0 ms Live)

1.00Γ—
108 BPM
0.00s
3.40s

Scale Snap, Quantize Grid & Extraction

Stage 3 Β· DistilHuBERT Genre & Synth Voice Matcher

Initialise Stage 3 to classify genre & auto-match the synth patch.

Progressive Web MIDI Out & Studio Exports

Inspect binary Standard MIDI File (MThd / MTrk) header

Active StagesWaiting
Detected Keyβ€”
Tempo BPMβ€”
Notes & Chordsβ€”
CREPE Tuningβ€”
Top Genreβ€”
Worker Latencyβ€”

signature showcase Β· audio music studio Β· Basic Pitch (0.3 MB) + CREPE (2 MB) + DistilHuBERT Genre (24 MB) Β· ~26.3 MB total Β· 100% local

Hum a hook, strum a riff, or load an audio loop to run three chained on-device audio models in ~26.3 MB total: Basic Pitch extracts polyphonic MIDI notes, CREPE overlays a cent-accurate pitch-bend contour & chromatic tuner, and DistilHuBERT matches a zero-dependency Web Audio synth voice. Snap to key, quantize, loop A–B at half speed, stream over Web MIDI, or export genuine binary .mid, .wav, .csv, and .json scores.

Inspect the Binary MIDI Encoder, CREPE Pitch-Bend Fusion, TAB Mapper & FIFO Client

Show binary Standard MIDI File (SMF Type 0 .mid) encoder with CREPE pitch bends (melody-core.mjs)
Show CREPE 16 kHz cent-contour fusion onto Basic Pitch polyphonic MIDI notes (melody-core.mjs)
Show hand-position smoothed 6-string Guitar TAB mapper (melody-core.mjs)
Show FIFO-serialized lifecycle-safe Basic Pitch worker client (melody.js)

Architecture & Honest Trade-Offs

~26.3 MB Three-Model Audio Stack

All three models run on plain CPU WebAssembly across every modern browser with zero WebGPU gate: Basic Pitch (~0.3 MB) handles polyphonic 22.05 kHz audio-to-MIDI, CREPE (~2 MB) tracks monophonic 16 kHz pitch to Β±1 cent, and DistilHuBERT (~24 MB) classifies 10 GTZAN genres to match the synth voice.

Honest Polyphonic vs. Monophonic Fusion

Basic Pitch excels at simultaneous chords and multi-note riffs, while CREPE is a monophonic fundamental tracker. When dense chords play, CREPE locks onto the strongest harmonic pitch; our fusion pass only attaches pitch-bend curves to notes whose pitch sits within Β±1.5 semitones of CREPE's voiced contour.

Graceful Partial-Stage & Instant Memory Release

Each worker is wrapped in a FIFO lifecycle client with decoupled disposeSeq guards. Releasing any single model from memory frees its worker immediately without error flashes while preserving the other two stages' live Piano Roll, Pitch Ribbon, or Genre results.

Progressive Web MIDI & Zero-Upload Privacy

Live mic humming, local file decoding, synth bouncing, and SMF .mid / formula-safe .csv / .json export all execute in-tab with 0 bytes uploaded. Web MIDI API output is strictly opt-in and degrades honestly on browsers without MIDI hardware.