
416 Chapter 21 • Playing Musical Instruments
Programming the Drummer
This is one of those cases where the simplicity of the structure corresponds to the
simplicity of the software.As we explained earlier, all you have to do to use the
sticks is to run the motor for a very short time before switching it into float mode.
In our test version, we kept the motor on for just two hundredths of a second.
Create three routines (or macros) that correspond to the left and right sticks
as well as the pedal. Each one will have a structure similar to the following NQC
example:
void right_stick()
{
On(OUT_C);
Wait(2);
Float(OUT_C);
}
www.syngress.com
Figure 21.5 Drummer Rear ...