This virtual guitar has six strings in standard tuning, a 12-fret neck, and 96 chords. Strum it with a swipe or the computer keyboard, tap the neck to pick out single notes, and switch between acoustic, nylon, clean electric, and overdrive. It runs in your browser on a computer, tablet, or phone, with nothing to install.
How to strum the virtual guitar
Choose a chord with one of the eight chord buttons, and it plays once so you can hear it. Then swipe across the strings below the neck to strum. Swipe down for a down-strum, from the low E to the high E, and up for an up-strum. Each string sounds as you cross it, and a faster swipe plays louder.
Tap right on a string to pluck it on its own: it plays that string's note in the current chord. The Strum down and Up buttons play the whole chord, with the strings just over a hundredth of a second apart, and Mute stops every string at once. As on a real guitar, each string plays one note at a time, so a new note on a string stops the last one.
Pick single notes on the neck
Tap any fret, or an open string at the nut, to play that one note, whatever the chord, so you can pick out a melody or a riff. Six open strings and 12 frets give 78 spots to play. The frets get closer together up the neck, as on a real guitar, and the 12th fret, marked with two dots, sounds an octave above the open string.
Note names on the neck has three settings: Chord names the notes in the current chord, All notes names every note on every string, and Off shows the chord dots without names.
Keys for chords, strums, and single strings
With a computer keyboard you can play without the mouse:
- 1 to 8: pick the chord on that button and strum it. The number pad works too.
- Space or ↓: strum down.
- ↑: strum up, lighter and brighter, like a real up-strum.
- A S D F G H: pluck one string of the chord, from the low E to the high E.
The keys work while the guitar is on screen, and typing in a text box never plays a note.
96 chords: eight types on 12 roots
Every root from C to B comes in these eight types:
- Major and minor
- Dominant 7th (7), major 7th (maj7), and minor 7th (m7)
- Suspended 2nd (sus2) and suspended 4th (sus4)
- Power chords (5), just the root and the fifth
The buttons start with C, G, Am, F, D, Em, A, and E. To change one, press it, then choose a new Root and Type under Change a chord. The new chord plays straight away, and Reset to the starting chords brings the first eight back.
Of the 96, 35 use an open shape, the familiar first-position fingerings such as C, G, D, Am, and E7. The other 61 use the two standard barre shapes, built on the low E or the A string, usually whichever sits lower on the neck.
Reading the chord shapes
White dots show where the fingers go, and the amber dot is the root, the note the chord is named after. A ring at the nut means an open string, and a red × means a string you don't play. The display spells out the fingering from the low E up, such as x32010 for C.
Every chord starts on its root, so the lowest note you hear names the chord. F and B♭ are barre chords, played with the E and A shapes moved up to the first fret, where one finger lies across several strings. That's how one shape plays every chord of its type: move it up a fret and every note rises a semitone.
Capo and standard tuning
The guitar uses standard tuning, E A D G B E from the lowest string to the highest, and has no other tunings. A capo clamps across the neck and raises every string together. Set Capo to a fret from 1 to 7, and each chord plays higher with the same shape. The display shows what it sounds as, such as Capo 2 · sounds as A for the G shape. With a capo on, the neck counts frets from the capo, as chord charts do, and the note names move with it.
Acoustic, nylon, electric, and overdrive
Pick a sound under Guitar. Changing it strums the current chord so you can hear the difference:
- Acoustic: a steel-string guitar with a full, ringing body.
- Nylon: a classical guitar, softer and rounder, as if plucked with the thumb.
- Electric: a clean electric guitar with the bright edge of a pickup and a long sustain.
- Overdrive: the electric through a driven amp, for rock riffs and power chords.
The two electric sounds fade more slowly than the steel-string acoustic, so a strummed chord rings on, while the nylon strings die away a little sooner.
How the virtual guitar makes its sound
Every note is made in your browser with the Karplus-Strong method, so no recorded samples are downloaded. A short burst of noise circulates in a loop exactly one vibration long, losing a little brightness on every trip, which is how a plucked string behaves. The loop is tuned to a fraction of a sample, so every note is in tune, and the open low E rings nearly twice as long as the high E.
Each sound then passes through its own body or amp. The acoustic and nylon sounds boost the low resonances of a guitar body, the electric adds a pickup's bright peak, and overdrive pushes the signal into a soft-clipping curve, like turning up a guitar amp.
Where the guitar and its synthesis came from
The modern classical guitar owes its shape to Antonio de Torres, a Spanish maker of the mid-1800s whose design guitar makers still follow. Electric guitars with magnetic pickups followed in the 1930s.
The Karplus-Strong method is much newer. Kevin Karplus and Alex Strong published it in 1983, and David Jaffe and Julius O. Smith extended it the same year with the fine tuning and pick-position filter this guitar uses.
Strumming on a phone, tablet, or computer
The guitar runs in any modern browser on a Windows PC, Mac, Chromebook, iPhone, iPad, or Android device:
- Touch: swipe across the strings to strum, or tap one to pluck it. On a narrow screen the neck stands upright like a chord chart, with the low E on the left.
- Mouse: drag across the strings, and click the neck for single notes.
- Keyboard: number keys for chords, Space and the arrows to strum, and A to H for single strings.
- Screen readers: every fret, string, and chord button has a spoken name, such as E minor, key 6, and messages are announced.
The page needs a connection to load. After that, every string is plucked by code running on your own device, from the first noise burst to the body or amp that colors it.
Saved on this device: your eight chords
The chords you put on the eight buttons, the one you picked last, and your sound, note names, capo, and volume stay in this browser's local storage under virtual-guitar:v1, so the neck looks the same next visit. The privacy policy covers that entry, and the notes you strum and pick aren't sent to a server.
The guitar has no recorder. To record yourself, try the Virtual Piano, or start a loop on the Virtual Drums and strum along in another tab.