Keyboard chords, scales and progressions for your page

Lesson notes can show the exact keys of a chord, a scale or a voice-led change, drawn for the student's own keyboard.

Every widget is a small page under keyswarrior.com/embed/… that you frame on your own site. It follows the color theme you pick, resizes to fit, sets no cookies or trackers inside your page, and carries a link back to Keys Warrior.

Keyboard chord

One chord on a real keyboard, with the keys it needs lit and, on a synth with a voice limit, the tones it has to drop. Name the keyboard, the root and the type in the path; add /1, /2, … after the type for another voicing style (inversions, open, shell), in the order the chord page lists them.

<iframe
  src="https://keyswarrior.com/embed/keys-chord/piano/c/major"
  title="C major on the keyboard — Keys Warrior"
  width="100%" height="240" loading="lazy"
  style="border:0;max-width:40rem"
  sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin">
</iframe>

Path: /embed/keys-chord/{keyboard}/{note}/{type}[/{voicing}]. Find the chord you want in the chord library.

Scale on the keyboard

A scale lit across two octaves of a real keyboard, every degree named on its key and every root marked. Name the keyboard, the root and the scale in the path.

<iframe
  src="https://keyswarrior.com/embed/keyboard/piano/a/minor"
  title="A natural minor on the keyboard — Keys Warrior"
  width="100%" height="200" loading="lazy"
  style="border:0;max-width:40rem"
  sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin">
</iframe>

Path: /embed/keyboard/{keyboard}/{note}/{scale}. Find the scale you want in the scale library.

Voice-led progression

A key’s I – IV – V – I as four keyboards in a row, each chord the voicing that moves the fewest keys from the one before. On a synth with a voice limit, each board shows what it keeps. Add a progression’s name after the key (/ii-v-i, /andalusian-cadence) for that named progression in that key instead.

<iframe
  src="https://keyswarrior.com/embed/keys-progression/piano/c"
  title="I – IV – V – I in C major — Keys Warrior"
  width="100%" height="560" loading="lazy"
  style="border:0;max-width:40rem"
  sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin">
</iframe>

Path: /embed/keys-progression/{keyboard}/{key}[/{progression}]. Pick a key on the keys and progressions.

Metronome

Tempo, tap tempo, time signature, accent and every click sound. Nothing plays until the reader presses Start.

<iframe
  src="https://keyswarrior.com/embed/metronome"
  title="Metronome — Keys Warrior"
  width="100%" height="360" loading="lazy"
  style="border:0;max-width:40rem"
  sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin">
</iframe>

Path: /embed/metronome. The full tool is on the metronome page.

As a plain image, no iframe

Every chord this site draws is also a self-contained SVG image: it works anywhere an <img> does, in a Markdown README, a forum post, an email, or a platform that strips iframes and scripts. It stays sharp at any size and carries a text description for screen readers.

C Major chord diagram
<img
  src="https://keyswarrior.com/images/diagrams/piano/c/major.svg"
  alt="C Major chord diagram"
  width="728" height="60" loading="lazy">

In Markdown: ![C Major chord diagram](https://keyswarrior.com/images/diagrams/piano/c/major.svg)

Path: /images/diagrams/piano/{note}/{type}.svg; sharps are written s (cs for C#) and the type matches the chord library.

Make it fit its content (optional)

Each widget knows its own height and reports it to your page. A fixed height works on its own; to have the frame grow and shrink with the widget, add origin and id to the URL and put this listener on your page once:

<iframe
  src="https://keyswarrior.com/embed/keys-chord/piano/c/major?origin=https://YOURSITE.com&id=w1"
  data-sw-embed="w1" title="C major on the keyboard — Keys Warrior"
  width="100%" height="240" loading="lazy" style="border:0;max-width:40rem"
  sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin"></iframe>
<script>
  window.addEventListener('message', function (e) {
    if (e.origin !== 'https://keyswarrior.com') return;
    var d = e.data;
    if (!d || d.type !== 'stringwarrior:embed:size') return;
    var f = document.querySelector('[data-sw-embed="' + d.id + '"]');
    if (f) f.style.height = d.height + 'px';
  });
</script>

Set origin to your own site's address, and give each widget on a page its own id.

Or paste a placeholder

If your editor strips iframes, paste a placeholder and one script tag instead: keyswarrior.com/embed.js turns every .keyswarrior-embed on the page into the widget its data-embed names, with the same live sizing.

<div class="keyswarrior-embed" data-embed="keys-chord/piano/c/major" data-title="C major on the keyboard"></div>
<script src="https://keyswarrior.com/embed.js" async></script>

Options

Add these to any widget URL as query parameters (?theme=forge):

ParameterWhat it does
themeThe color palette: any of this site’s themes.
origin, idFor the resize listener above: your site and a unique id per widget.

Good to know

Is it free? Do I need an account?
It is free, with no signup and no key. Keep the credit line under each widget: it is how readers find Keys Warrior.
Does it track my visitors or set cookies?
No. The widget pages carry no analytics and set no cookies inside your page, so your own privacy and consent tooling is untouched.
Where does it work?
Anywhere that accepts an <iframe>: an HTML or embed block in most site builders, or a plain page. Where iframes are stripped, use the placeholder above.