A "chirp" in sound lingo is a sound that has a continually increasing frequency. As an example, suppose we started playing a 1000 Hz sound, then smoothly increase it to 1001, 1002, 1003, etc. What would it sound like?
We have a function called play_chirp() that allow you to generate a chirp.
Move the mouse over a dotted box for more information.
Now you try. See what cool sounds you can create by playing chirps!
Type your code here:
See your results here:
The default code will play a chirp starting at 1000 Hz and ending at 3000 Hz, for 2 seconds. The frequency will be gradually increased while the chirp is played.
Show a friend, family member, or teacher what you've done!
Here is a share link to your code:
Does your code work? Want to run it on your iPhone?
Here's your code:
Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
Then click the "Use on iPhone" button that you'll see.