The code has
???? for the descending half of the scale. Replace
???? with
"c B A G | F E D C |]" and click
Run to generate the sheet music and audio synthesizer!
1. In the viewport, you will see a clean 4-measure musical score with a treble clef and time signature.
2. Click the
Play button on the player controls below the staff to hear the synthesizer play the ascending and descending scale.
3. Notice how capital letters
C D E F G A B are in the middle octave, while lowercase
c is an octave higher.
4. To learn more ABC notation tricks (like chords, triplets, and key signatures), visit the
abcjs ABC notation guide.