A RhythmPattern is a set of parameters bundled as an object which is used to create a rhythm pattern and mask pattern for a particular Player.
String -> Number -> [Number ...] -> [Boolean] -> Object
Creates the RhythmPattern
new RhythmPattern(n, l, i, b)
Name of the rhythmPattern.
Length of the rhythmPattern
A number array filled with the booleans "true" and "false".
let testR = new RhythmPattern('dopeRhythm', 5, [2, 2, 2, 2, 2], [true, false, true, true])
MusicalEnvironment -> String ->
Adds this RhythmPattern to a player.
testR.addToPlayer(env, playerName)
MusicalEnvironment
Name of the player to add to.
testR.addToPlayer(e, 'p3')
MusicalEnvironment -> String ->
Adds to MusicalEnvironment but does not add to a player.
testR.add(env, playerName)
MusicalEnvironment
Name of the player to add to.
testR.add(e, 'p3')