Writing the code
The coding for the guitar is very simple in premise but allows for completely individual interpretation of how you want to play the guitar and how you want the guitar to sound.
The program we are writing as an example will showcase some possibilities, but in the end, be brave and tinker around to get the guitar to sound like you want it. The beauty of music is that it allows you to express yourself the way you want to express yourself. This is your moment! Combining coding and music is an exciting combination of awesome.
The ports
There is not a lot to plug in for this build. You will connect the force sensor into port D and plug the color sensor into port C:
The basic layout of the program will follow this structure for each of the colored items on your guitar fretboard.
You will start by deleting the default yellow event block called when program starts. Right-click...