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

Input lag (due to use of input tap) for complicated songs #1

Open
hbespoke opened this issue Apr 27, 2020 · 1 comment
Open

Input lag (due to use of input tap) for complicated songs #1

hbespoke opened this issue Apr 27, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@hbespoke
Copy link

Hi!
Due to "input tap" being java application, for complicated songs with tempo and chords, there is a lag when some taps either not happening at all or doing so with delay making a sound mess in the end.
If you could implement an alternative method by using sendevent that would be much appreciated.
Here is an example of a minimum needed to perform a tap on x, y.
Z - depends on your device.

sendevent /dev/input/eventZ 1 330 1 (tap press)
sendevent /dev/input/eventZ 3 53 x (x coordinate)
sendevent /dev/input/eventZ 3 54 y (y coordinate)
sendevent /dev/input/eventZ 0 0 0 (separator)
sendevent /dev/input/eventZ 1 330 0 (tap release)
sendevent /dev/input/eventZ 0 0 0 (separator)

Thank you!

@jkulvich
Copy link
Owner

jkulvich commented Sep 9, 2020

Hi and thank you for your suggestion.

Sadly, but I already tried implement the event-based input and it doesn't work with my device (K20 Pro MIUI 12 Android 10).
As a temprorary crunch you can use --delay 80 flag. It should be enough for not complicated songs.
However it isn't resolve your problem :(

I'm still working on this problem and multi-touch input problem also.
More possible and universal way it is making a standalone android app with touch emulation (Both problems will be resolved).
But I don't know Java/Kotlin language enough to make it :(

@jkulvich jkulvich added the enhancement New feature or request label Sep 9, 2020
@jkulvich jkulvich self-assigned this Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants