Skip to content

Commit

Permalink
Add support of negative beat_rotations value
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1kn1 committed Mar 12, 2018
1 parent 0b1f2c7 commit 0135015
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion petal_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def dfs_each_with_index_map(arry, index_array = [], &block)
def euclidean_rhythm(num_accents, size, beat_rotations = nil)
res = EuclideanRhythm.euclidean_rhythm(num_accents, size)
if beat_rotations && beat_rotations.is_a?(Numeric)
beat_rotations = beat_rotations.abs
res.rotate!(beat_rotations)
end
res
Expand Down

0 comments on commit 0135015

Please sign in to comment.