Assignment beat patterns:

  • NorteƱo/Polka: XxXxXxXx
  • Waltz: XxxXxx
  • Blues: XrXxrX
  • Salsa: XrrXrrXrrrXrXrrr
  • HipHop: XrrXxrrrrXXrxrrr
  • Gospel: XrxrXXxr

How to read the patterns of symbols:

  • The symbol X represents a base drum where method to be called is playBase();
  • The symbol x represents a snare drum where method to be called is playSnare();
  • The symbol r represents a rest where any wait method can be called waitQuarter(), waitHalf(), waitSecond();
  • Add a wait method after each playBase() or playSnare() method. Not having a wait method will cause the two sounds to be played at the same instance.
  • Add a wait method at the end of the pattern.

Example: X x r x

To interpret the following example:

  1. X is playBase();
  2. waitQuarter(); We call a wait method after playBase().
  3. x is playSnare();
  4. waitQuarter(); We call a wait method after playSnare().
  5. r is waitQuarter();
  6. x is playSnare();
  7. waitQuarter(); We need a wait method at the end of the pattern.

Note: Using waitEighth() or waitHalf() or waitSecond() instead of waitQuarter() would also work. It will only change the tempo (speed) of the beat. However, make sure to stick to one type wait method throughout the pattern because the time difference needs to be the same between the beats.

The two waitQuarter() method at lines 4 and 5 may be combined into one waitHalf() method since two quarters of the second is the same as half a second.