© Fort Street High School Robotics
Beep beep! To make a beep…
playTone(100, 100);
This plays a tone at frequency of 100 Hz for 1000 milliseconds (1 second). That second number is the number of 10 milliseconds (yes, a bit confusing!)
To make different noises, simply change the frequency or time.
You can also play some other patterns:
playSound(soundUpwardTones);
You can do the following sounds. Try them out!
soundBlip
soundBeepBeep
soundDownwardTones
soundUpwardTones
soundLowBuzz
soundFastUpwardTones
soundShortBlip
soundException
soundLowBuzzShort