Play

Virtual Pan Flute

Play a free virtual pan flute online. Click the graduated tubes, tap on mobile, or use your keyboard.

Keyboard: A=C4 · S=D4 · D=E4 · F=F4 · G=G4 · H=A4 · J=B4 · K=C5

Captures live performance audio with zero latency. Export as .wav (DAWs & universal playback) or .webm (MPV player & web).

How the Virtual Pan Flute Works

The virtual pan flute uses a sine-wave oscillator with subtle white-noise breath simulation (5% mix) and a slow 80ms attack envelope. Real pan flutes are end-blown pipes tuned by length — the longer the pipe, the lower the pitch. Our tubes progressively lengthen across the octave to mimic this physical reality visually.

Cultural Heritage

Pan flutes — also called nai, antara, or zampoña — are central to traditional Andean music from Peru, Bolivia, and Romania. The Romanian nai tradition inspired composers like Georges Enesco and Béla Bartók, while Andean ensembles feature the zampoña in festivals across the high Andes. Many cultures have independently invented graded-length wind instruments, with versions found in ancient Greece (syrinx) and among Pacific islanders.

Synthesis Notes

For each note, we instantiate a short white-noise buffer at 5% gain mixed into a sine oscillator. This subtle noise simulates the turbulent air stream inside a real tube — without it, the tone would sound too clean and electronic. Combined with the slow attack, this produces a believable breathy sustain ideal for folk melodies.

Frequently Asked Questions

Find answers to common questions about our virtual instruments, practice tools, and music theory workspace.

What is a virtual pan flute?

A pan flute (or panpipes) is an ancient wind instrument made of vertical tubes of graded length.

Our virtual pan flute adds subtle breath noise to a sustained sine tone for organic realism.

How does the sound compare to a real pan flute?

The synthesized tone blends a sine oscillator with low-level white noise (5% volume) to simulate air column turbulence, giving it a breathy quality closer to the actual instrument.

What keyboard keys play which notes?

A-S-D-F-G-H-J-K maps to C major (C4-C5).

W-E-T-Y-U plays the chromatic sharps/flats between.

Can I record my pan flute playing?

Yes.

Tap Record to begin capturing audio, Stop to finalize, and a download link + preview will appear.