This example demonstrates the Sample class.
#include <MozziGuts.h>
#include <Sample.h>
#include <samples/burroughs1_18649_int8.h>
#include <EventDelay.h>
#define CONTROL_RATE 64
void setup(){
aSample.setFreq((float) BURROUGHS1_18649_SAMPLERATE / (float) BURROUGHS1_18649_NUM_CELLS);
}
if(kTriggerDelay.
ready()){
aSample.start();
}
}
return (int) aSample.next();
}
void loop(){
}