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  

length

   
Examples  
BSound clong; 
 
void setup() { 
  beginSound(100); 
  clong = loadSound("clong.wav"); 
  repeat(clong); 
} 
 
void loop() { 
  background(204); 
  for (int i=0; i < length-1; i=i+1) { 
    line(i, samples[i] + 50, i+1, samples[i+1] + 50); 
  } 
} 

Description   Number of audio samples contained in the samples[] array, as defined when calling beginSound(int) inside the setup() function.
   
Syntax  
length
   
Usage   Web & Application
   
Related   BSound
beginSound()
samples[]
   
© 2003- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas