| (wiring the speaker into the breadboard) |
Saturday, September 30, 2017
19 September '17- Day 7- Random numbers and Recursion
Todays class involved a speaker and creating sound from the speakers. Fairly simple lab but has tons of potential with the overall use of it. The more tedious portion of this lab was to write certain songs in the library for pitches to be able to play the songs we'd like.
During lecture we began discussing generating random numbers and also recursion. To generate a random number there is a function included in the standard C library called "srand(seed)". This will generate random number.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment