Player is an audio file player with start, loop, and stop functions.
You can an instance of the music object when you need it like this:
Play the buffer at the given startTime. Optionally add an offset and/or duration which will play the buffer from a position within the buffer for the given duration.
Stop the source at the specified time. If no time is given, stop the source now.
Stop the source at the specified time. If no time is given, stop the source now.
Seek to a specific time in the player's buffer. If the source is no longer playing at that time, it will stop.
Connect the output of this node to the rest of the nodes in series.
Return player name.
Clean up.
Return Tone.Player class from Tonejs