This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:fall2022:c4eng:projects:sss1 [2022/09/29 16:41] – created wedge | haas:fall2022:c4eng:projects:sss1 [2022/09/29 16:46] (current) – [pseudocode] wedge | ||
---|---|---|---|
Line 20: | Line 20: | ||
* potentially adding additional sound channels (using multiple passive buzzer circuits). This might involve borrowing buzzers from neighbors when it comes time for your performance | * potentially adding additional sound channels (using multiple passive buzzer circuits). This might involve borrowing buzzers from neighbors when it comes time for your performance | ||
+ | * potentially adding in one or more buttons that somehow influence the behaviour of the end result (play a different song? Alter quality of notes played somehow?) | ||
* utilizing LEDs to have a corresponding visual lightshow going along with whatever sound is being produced | * utilizing LEDs to have a corresponding visual lightshow going along with whatever sound is being produced | ||
* in your program, use an array to store the individual frequencies to be played, followed by a delay | * in your program, use an array to store the individual frequencies to be played, followed by a delay | ||
Line 35: | Line 36: | ||
{{page> | {{page> | ||
- | ====pseudocode==== | ||
- | |||
- | < | ||
- | SET INDEX TO ZERO | ||
- | AS LONG AS PROGRAM CONTINUES TO RUN: | ||
- | |||
- | PLAY THE NOTE LOCATED AT THE CURRENT INDEX | ||
- | DELAY FOR THE LENGTH OF TIME AT CURRENT INDEX PLUS ONE | ||
- | SET THE INDEX TO GO UP BY TWO | ||
- | SHOULD THE INDEX EXCEED THE TOTAL NUMBER OF NOTE/ | ||
- | RESET INDEX TO ZERO | ||
- | |||
- | KEEP GOING | ||
- | </ | ||
=====SUBMISSION===== | =====SUBMISSION===== |