This is a method for the RhythmPattern class. It takes a RhythmPattern object and then creates a player, rhythmMap, and maskMap in the specified MusicalEnvironment.
RhythmPattern.add(MusicalEnvironment)