Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 'delay' keyword in the stutter method (Players) #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aguillon
Copy link
Contributor

@aguillon aguillon commented Sep 27, 2019

Players.stutter allows to change some attribute of the generated events using patterns, for example:

p1 >> play("  *   ", lpf=10000).every(1, "stutter", 10, lpf=10000*(0.7**PRange(10)))

but the events are all too close and the result is somewhat confused. This patchs allows to write

p1 >> play("  *   ", lpf=10000).every(1, "stutter", 10, lpf=10000*(0.7**PRange(10)), delay=0.1225)

which separates the events with an additional period of time (I find it nicer to the ear!). There is also some support for Patterns, e.g.

p1 >> play("  *   ", lpf=10000, delay=0.1).every(1, "stutter", 5, lpf=10000*(0.5**PRange(5)), delay=0.1 * PRange(5))

but this may need some additional testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant