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

audio syncing #2

Open
mgood7123 opened this issue Nov 18, 2020 · 2 comments
Open

audio syncing #2

mgood7123 opened this issue Nov 18, 2020 · 2 comments

Comments

@mgood7123
Copy link

mgood7123 commented Nov 18, 2020

I can't get the audio to be 100% in sync with the text, as (unfortunately) the audio itself plays out in sync in comparison to a professional metronome such as PFSeq but I can't get it to sync up with the UI, especially at high/low bpm's :(

@MasterEx
Copy link
Owner

Hi @mgood7123, a handler does not guarantee when it will process the message. For this reason in the current implementation the text won't perfectly sync with the sound and the outcome will vary depending outside factors such as if a garbage collection is happening etc. I guess an approach to achieve this would be to create a "video" stream that carries both the visual representation of the metronome and the audio sound.

In other words instead of just generating sound use the same principle and generate sound and "image".

I am not sure how other implementations of metronomes are handling this. Maybe there is another good solution which I cannot think at the moment.

Feel free to submit a PR if you implement this.

@MasterEx
Copy link
Owner

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

2 participants