Questions week 3
link to Lightbird project
1. Explain (in a nutshell) your code structure, logic, important, parts
2. what did you do that you feel is new, non-obvious, and useful
Answers
1.The code structure is written in multidimensional arrays that store each one of the melodies that are triggered by the light sensor. The logic is a set of conditionals that calculate the time in which the sensor is reading light. We used this time to change from one stage (mood) to another, same logic applies to the time the sensor is not reading any values or reads values bellow a margin defined in the code.
Is important to note that thanks to multidimensional arrays we developed a much cleaner, simple code. One thing to develop further is a threshold at the last step of the logic in which the mood (death of the bird) cant be resolved. In other words once the bird is in the mood before death is inevitable to stop the array so at the end Lightbird will always die. (Take a look at the video) .
2. We felt very good with our simple approach to the project, defining one of our previous sounds as the starting point. We also chose to used another device (Ipad) to compose the sounds and then put them in the code.
Is useful the way we decided to prototype since it has a good quality but still has a “in process feeling” that give us the freedom to iterate multiple times after this one.
Gina Hanan 3:20 am on May 18, 2011 Permalink |
Fantastic Post, love to see this kind of feedback.