From 013501582803fb604ee3a45704725d41b407f0a8 Mon Sep 17 00:00:00 2001 From: kn1kn1 Date: Mon, 12 Mar 2018 13:32:51 +0900 Subject: [PATCH] Add support of negative beat_rotations value --- petal_parser.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/petal_parser.rb b/petal_parser.rb index 5ae997d..a0a9f2b 100644 --- a/petal_parser.rb +++ b/petal_parser.rb @@ -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