Changes in Key Signature with Addition of Sharps or Flats

This Demonstration shows how key signature changes as the number of sharps and flats in the treble clef is changed. Each major key has a corresponding minor key that begins four half-steps below. The green and red highlighted keys on the piano represent the corresponding major and minor keys of the key signature, respectively.
Toggle between sharp and flat and select the number added to the key signature to see how the key changes.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


This was a project for Advanced Topics in Mathematics II, 2018–2019, Torrey Pines High School, San Diego, CA.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.