Reference Language | Libraries | Comparison | Changes
Plays a melody according to a string of music notes. The input string also contains information about note duration, as well as silences. Must be preceded by Robot.beginSpeaker()
in setup()
.
NB : when a melody is playing, all other processes stop
Robot.playMelody(melody)
melody: A string of notes to be played and their duration.
The string may contain following chars:
Notes
Duration
none
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.