The Finch allows you to play simple sounds.
The buzzer method requires a frequency(f) and duration(d) for each tone you want to play.
The higher the frequency the higher the note.
The longer the duration, the longer the note will play.
This program will play a series of 2 tones:
but they will play on top of each other so you can only hear the first note
These programs allows time for each note to play separately
add extra wait blocks if you want a rest ( quiet ) in between notes.
Write a program to play this song:
B A G, B A G, G G G G A A A A, B A G
The whole note lasts twice as long as a half note which is twice as long as a quarter note which (of course) is twice as long as an eighth note .
|
You can make a whole note last a second, a half note a half of a second, etc. |