Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
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()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas