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  

jump()

   
Examples  
BSound clong; 
 
void setup() { 
  clong = loadSound("clong.wav"); 
  repeat(clong); 
} 
 
void loop() { 
  if (mousePressed) { 
    jump(clong, 0); // Go to the start of the sound 
  } 
} 

Description   During playback, jump() will change the position of the current audio sample to the desired position. This could be useful to rewind, forward or skip during the playback of an audio file.
   
Syntax  
jump(sound, pos)
   
Parameters  
sound   BSound: sound to be used

pos   int: number of the audio sample in the sound object to jump to

   
Usage   Web & Application
   
Related   play()
pause()
stop()
   
© 2003- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas