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

Redistribute holes on the stripe #1

Open
mhoangvslev opened this issue Apr 10, 2018 · 0 comments
Open

Redistribute holes on the stripe #1

mhoangvslev opened this issue Apr 10, 2018 · 0 comments

Comments

@mhoangvslev
Copy link

Thank you for making this extremely useful program.

As you may have known already, you cannot play two 1/4 notes consecutively: the program should consider this constraint and stretch the holes accordingly. After that, it depends on the operator to turn the crank faster.

The idea is simple:

  • Scan the notes, retrieve the lowest value note that precedes another note of the same pitch, named L
  • Calculate the scale, relative to a quarter note. S = L/(1/4) =L*4
  • Apply the scale all the notes value: N *= S
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

No branches or pull requests

1 participant