top of page

5-keyboard instrument


DISCOVER: resistor ladder , arrays

with few resistors and buttons and piezo we made a small musical keyboard ..

A piezo is a small element that vibrates when it recieves electricity . when it moves it displace air around it creating sound waves .

in this program we need to keep a list of frequencies we want to play when you press each of our buttons . to do this we need a kind of variable called an Array (to declare it , start as you would with a variable but follow the name with a pair of square brackets []

Arrays are useful for grouping similar types of information together , they are accessed by index number which refer to individual element

INGREDIENTS : switchs , piezo , resistors

العلامات:

Recent Posts
Archive
Search By Tags
bottom of page