Haptica icon indicating copy to clipboard operation
Haptica copied to clipboard

How to stop while playing a note

Open amith-ranasinghe opened this issue 3 years ago • 1 comments

How to stop while playing a long pattern

Haptic.play("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", delay: 0.1)

I want to stop this when this is playing. Please show me a way to do it.

thanks

amith-ranasinghe avatar Apr 10 '21 02:04 amith-ranasinghe

@amith-ranasinghe, try Haptic.queue.cancelAllOperations()

neduck avatar Aug 11 '21 09:08 neduck