Today’s Task:
Work together to create a single P5 sketch that incorporates something from everyone using separate javascript files. (i.e. maybe everyone creates something on their own, place it in a seperate javascript file and then at the end of class we combine them all)
At a minimum Some (or all) team members should create one user interface element that creates a sound from a synthesizer when you mouse over it (or you can use keys as well if you prefer)
Extra: add ADSR to your synth
Extra: add sliders or other controls to control parameters of the synth
Feel free to my function that we have discussed before for determine if a mouse is over a rect:
function mouseInRect(x,y,w,h) {
return ((mouseX >x) && (mouseX<x+w) && (mouseY>y) && (mouseY<y+h));
}