Back
Class   LiveInput
   
Name  

startRecLoop()

   
Examples  
 
Sample mySampleObj; 
void setup(){ 
  Sonia.start(this,22050); 
  LiveInput.start(); 
  mySampleObj = new Sample(22050); 
  mySampleObj.repeat(); 
} 
 
void mousePressed(){ 
  LiveInput.startRecLoop(mySampleObj, mySampleObj.getCurrentFrame()); 
} 
 
void mouseReleased(){ 
  LiveInput.stopRec(mySampleObj); 
} 
 
public void stop(){ 
  Sonia.stop(); 
  super.stop(); 
} 

Description   Continuously stores the LiveInput data to a Sample object. when the end of the Sample (or specified end-frame) is reached, new data will continued to be stored from the Sample's beginnnig (or specified start-frame).
   
Syntax  
LiveInput.startRec(mySample)
LiveInput.startRec(mySample, startFrame, endFrame)
   
Parameters  
mySample   any sample object

startFrame   int: Specifies the first frame in the recording range. Data will be continuously recorded between this frame and the end-frame.

endFrame   int: Specifies the last frame in the recording range. Data will be continuously recorded between the start-frame and this frame

   
Returns   None
   
Usage   Web & Application
   
Related   startRecLoop()
stopRec()