🧪 Version 0.3.1 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_in_loop

Play a sound on a loop. This is part of the reference section.

Purpose

Play a sound on a loop which will continue until stopped or the sketch ends.

Snippet

Load sample.wav and play it on loop.
sound = sketch.get_sound_layer().get_sound('sample.wav')
sound.play_in_loop()

Availability

Not yet available. Planned for future release.

See also