RAPS assignment ——(Tina)

Github link:https://gist.github.com/tz1201/fbef30b02ee51c789d9235b1348e32b1

This is my first version of the project, I thought that three notes change in two seconds means that the frequency is “metro 667”.

But after Tuesday’s class, I knew that the making sound part and the changing note part should be separate.

So I set another teggle to control the change of the note, I use random function to generate a new note to play, then I use an object to set “+ 4” and “+ 7” to meet the requirement of certain steps between ntoes.

Moreover, I found the space is very important. If there isn’t a space between “+” and the number, the object will be like this, and can do nothing.

This is how my final project looks like.

Leave a Reply