I did a manual install of the Sparki software, so this action may not pertain to those of you that used the standard Sparki Installer.
In my case I had to download and save the ”pitches.h” file from: github.com/arduino/Arduino/blob … /pitches.h to the library folder that has all the other Sparki “.h” files to get the Melody sketch to work.
Pitches.h defines values for the Arduino speaker to synthesize sounds equal to a range of music notes (7 octaves, I think).
Now you should be able to run “Melody.ino” with Sparki, and make changes to its base code to create other simple tunes.