Back
Class   LiveInput
   
Name  

getLevel()

   
Examples  
// Print the input peak (volume) level from the microphone. 
 
void setup(){ 
  Sonia.start(this); 
  LiveInput.start(); 
} 
 
void loop(){ 
  float meterData = LiveInput.getLevel(); 
  println(meterData); 
} 
 

Description   Returns the peak value for the specified channel.
   
Syntax  
LiveInput.getLevel();
LiveInput.getLevel(channel);
   
Parameters  
channel   int: 0 or Sonia.LEFT for Left channel, 1 or Sonia.RIGHT for Right channel

   
Returns   float
   
Usage   Web & Application
   
Related   getSpectrum()