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

Problem with the sound #22

Open
gashello opened this issue Oct 16, 2021 · 1 comment
Open

Problem with the sound #22

gashello opened this issue Oct 16, 2021 · 1 comment

Comments

@gashello
Copy link

Hello! I really like your lib, but I'm struggling with a problem and still can't figure out how to solve it
Sometimes I hear some scratchy sound... Can you watch my bug-report video and give me some feedback, please )
video

I've been sent to you by JZZ author:
jazz-soft/JZZ#52

@g200kg
Copy link
Owner

g200kg commented Oct 20, 2021

Hello,
I watched the video of your problem.

I think it's a touch event handling issue that the keys aren't released when you press multiple keys.

If you're writing touch event handling yourself, you'll need to investigate what happens when End-of-Touch.
Or if you're using the https://github.com/jazz-soft/JZZ-input-Kbd library, Jazz-soft may need to investigate.

The next sound distortion problem is related to the above-mentioned key-holding problem, so if it can be solved, I think this problem will be solved naturally.

Since it is not possible to detect that the key has been released, the sound sources will accumulate excessively, and the sound will begin to distort when the signal amplitude limit is exceeded. Or sound glitches occur when the sound source accumulates too much and the load on the CPU rises.

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