This LEGO Guitar is ready to rock!
The LEGO SPIKE Prime set 45678 includes large elements that allows you to quickly build a functional LEGO SPIKE Prime Guitar. You can play the guitar by selecting a note by moving the slider along the neck, and pressing the LEGO SPIKE Force Sensor. The position of the slider is measured by the LEGO SPIKE Distance sensor.
You can program it to play any note you want, but the program I have prepared for it allows you to snap your melody on the notes of the pentatonic scale. It will be very easy to improvise fantastic guitar solos even without knowing the music theory. Happy soloing!