The clearCues() method of p5.MediaElement of p5.js library is used to clear all the currently scheduled cues of the media element that have been scheduled using the addCue() method.
Parameters: This function accepts no parameters.
Example: The below example illustrates the clearCues() method of p5.js library.
Online editor: https://editor.p5js.org/
Environment Setup: https://www.geeksforgeeks.org/p5-js-soundfile-object-installation-and-methods/