🧪 Version 0.2.2 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for play_once

Play a sound once. This is part of the reference section.

Purpose

Play a sound once before stopping.

Snippet

Load sample.wav and play it once.
sound = sketch.get_sound_layer()get_sound('sample.wav')
sound.play_once()

Availability

Not yet available. Planned for future release.

See also