Wowwee MIP V2 icon Wowwee MIP V2 UART interface to hack WowWee MIP with ESP32/ESP32‑Cam or EZ‑B v4 for ARC; hardware UART preferred, configurable power and baud 9600/115200 Try it →
 

Soundnote

Audio.soundNote(note, length, [signalType], [ezbIndex])

Parameters

note Note to play as a string.
length How long to play the note for in milliseconds.
signalType (optional) Type of signal to use when playing the note as a string.
ezbIndex (optional) Board index of the EZB to output the audio from.

Returns

Nothing

Description

Plays the specified note for length milliseconds. Notes are inputted as strings which range from "C1" to "Bb3". The note is played using the signal specified by signalType. If signalType is not provided a sine wave is used. Accepted signal types are "Sine", "Square", "Triangle", "Pulse", "Sawtooth", "WhiteNoise", "GaussNoise", "DigitalNoise". This function does not wait for the note to end to continue executing the script. In case of playing multiple notes in sequence, call the sleep() function to ensure the notes don't play over previous notes.