 |
 |
 |
Name |
|
repeat() |
 |
|
|
Examples |
|
BSound laugh;
void setup() {
laugh = loadSound("laughing.wav");
repeat(laugh);
}
|
|
BSound count;
void setup() {
count = loadSound("123.wav");
}
void loop() {
int l = count.length;
repeat(count, width-(mouseX * l/width), mouseY * l/height);
}
|
|
|
Description |
|
Starts the playback of a BSound or BVideo object and starts it again when it reaches the end. The start and end parameters are used to define in which sample or frame the playback should start and in which it should end. |
 |
|
|
Syntax |
|
repeat(object)
repeat(object, start, end)
|
 |
|
|
Parameters |
|
object |
|
BSound or BVideo: the object to be played
|
start |
|
int: starting position
|
end |
|
int: position to end playback
|
|
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
play() pause() stop() |