Link to the patcher:
https://gist.github.com/Amber-yutong-lin/820669a2a12ec03b288045cf2718a813
Screenshot:
For the first assignment, I initially misunderstood the concept that every 2 seconds change the three notes (pitches) played by the patcher to random values.” I thought it meant to assign the random values to the pitches every other two seconds. And instead of using the sample code, I created my own. Therefore, I altered the output of “select” to a random value and sent it to the first pitch, which further determined the second and third pitch using the “+” feature. These values are the input for the three pitches. As a result, when the first pitch is generated randomly, the second and third will be played as well in relation to the first pitch all in an interval of two seconds. After a round (6 seconds in total) was played, a new random number is generated for the first pitch.
Later in class, I realized that using the sample code is a requirement and the original can not be altered. And my solution and understanding of “every 2 seconds change the three notes (pitches) played by the patcher to random values” is totally wrong. A new random value generating system should be created separately, and the interval of the original notes do not matter. What matters is that the valued will be changed every two seconds. So I added a “metro” to set the interval to two seconds and sent the value to a “random” object, which will generate value as the input for the first pitch. Also, “loadbang” was added as well to solve the “no sound at first” situation. “100” and “300” were sent to velocity and duration at first. I hope I get it right this time.