Skip to content

Commit

Permalink
I got polyrhythm and polymeter the wrong way aound
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Jan 7, 2022
1 parent db647b6 commit 1eac65f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py-vortex/py_vortex/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def _sequence_count(x):
def sequence(*args):
return _sequence_count(args)[0]

def polyrhythm(*args, steps=None):
def polymeter(*args, steps=None):
seqs = [_sequence_count(x) for x in args]
if len(seqs) == 0:
return silence()
Expand All @@ -478,9 +478,9 @@ def polyrhythm(*args, steps=None):
return stack(*pats)

# alias
pr = polyrhythm
pm = polymeter

def polymeter(*xs):
def polyrhythm(*xs):
seqs = [sequence(x) for x in xs]

if len(seqs) == 0:
Expand All @@ -489,7 +489,7 @@ def polymeter(*xs):
return stack(seqs)

# alias
pm = polymeter
pr = polyrhythm

def reify(x):
if not isinstance(x, Pattern):
Expand Down

0 comments on commit 1eac65f

Please sign in to comment.