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

Add swing to the playback #1016

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Add swing to the playback #1016

wants to merge 5 commits into from

Conversation

dranidis
Copy link

@dranidis dranidis commented May 9, 2024

The swing is added as a parameter in synth options:

synth: {
  el: "#audio",
  options: {
    displayRestart: true, displayPlay: true, displayProgress: true,
    options: {"swing":66}
  }

The swing is represented as a percentage of the duration of the first note to the duration of the pair of eighth notes.
The default is 50%, which is no swing.

Try out editor-swing.html in the examples folder.

@paulrosen
Copy link
Owner

Wow! This looks great and something I've wanted for a while. I will have to study it a little bit to see how it acts in some edge cases.

@paulrosen
Copy link
Owner

Thanks for the example! That saves me time.

@dranidis
Copy link
Author

Thanks for the example! That saves me time.

Let me know if you need something changed.

By the way, congrats on the library. Great work!

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.

None yet

2 participants