Question
Can you please write the code that would create this project? The graphics are with p5 and the sound is Arduino. Write p5 code that
Can you please write the code that would create this project? The graphics are with p5 and the sound is Arduino.
Write p5 code that makes the background keys on a piano, white boxes with black outlines.
Code for the keys to represent the. keyboard keys : a, s, d, f, g, h, j, k, and l to be the tiles on the piano. When each key is pressed, have the corresponding piano key light up a specific color (a different color for each key that's pressed) while pressing on the key then go back to white when released. The only keyboard letters listed above will create sound/light up. If any other key is pressed or if the mouse is pressed, there will be no effect.
Select any sound with Arduino but make each key play a different sound for each key being pressed, so 9 different sounds.
Please write the code for the p5 and sound that would satisfy the elements listed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started