Reference play()

play()

Play the p5.SoundFile

Syntax

play([startTime], [rate], [amp], [cueStart], [duration])

Parameters

startTime
Number:

(optional) schedule playback to start (in seconds from now).

rate
Number:

(optional) playback rate

amp
Number:

(optional) amplitude (volume) of playback

cueStart
Number:

(optional) cue start time in seconds

duration
Number:

(optional) duration of playback in seconds

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References