To use the beat generation we first must set the actuator to standard actuator mode
actuatorName.setActuatorMode(ARAM_TOGGLE_ACTUATOR_Actuator);
To make the generate a beat we use the generate beat command
actuatorName.generateBeat(strikeTime,beatTime);
beatTime is the total time between beats in milliseconds
strikeTime is the time the actuator is striking each beat
it takes about 50ms for the actuator to strike, any time less than this may not have a sound.
To make the actuator stop the beat use
actuatorName.stopBeat();
To use advanced features like beat generation you must include an update function call in the loop
actuatorName.update();
Advanced features like beat generation require calling the update function in the loop
This system works best when the loop function runs quickly, you should avoid using delay inside the loop.