Interactive Music

Interactive Music - Week 3&4: Realize your graphic scores

Here is the link to my sketch: https://wenqili.github.io/adam/

It's not easy to combine P5 sketch with tone.js and my concept, so I think it's better to separate them in different objects.

Here is my plan:

1. Circuit obj contains all wire obj and patch obj.

2. A wire obj is defined by two patches.

3. Each patch contains a variable named type, which will decide its physical parameters and the tone.js player it was connected to. 

4. The cursor is the trigger. When it is hovering on the patch, it will trigger the player to play sound.