SoundLoop
Examples
Syntax
p5.SoundLoop(callback, [interval])
Parameters
this function will be called on each iteration of theloop
amount of time (if a number) or beats (if a string, following Tone.Time convention) for each iteration of the loop. Defaults to 1 second.
Fields
Getters and Setters, setting any paramter will result in a change in the clock's frequency, that will be reflected after the next callback beats per minute (defaults to 60)
number of quarter notes in a measure (defaults to 4)
length of the loops interval
how many times the callback has been called so far
musicalTimeMode uses Tone.Time convention true if string, false if number
Set a limit to the number of loops to play. defaults to Infinity
Methods
Start the loop
Stop the loop
Pause the loop
Synchronize loops. Use this method to start two or more loops in synchronization or to start a loop in synchronization with a loop that is already playing This method will schedule the implicit loop in sync with the explicit master loop i.e. loopToStart.syncedStart(loopToSyncWith)