cancel() Stops the pattern player immediately and returns the specified error. Declarationfunc cancel() throws See AlsoStarting and Stopping Playbackstart(atTime:)stop(atTime:)