onSend() have interval more than 3 seconds.

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
kotlin

Research direction

Start by reproducing the delay with the connected MIDI device and inspect the onSend() path referenced in the issue. Compare the device timestamps with when the app receives or displays each NoteOn event; done means determining whether the delay is intended and documenting or fixing the cause so input arrives promptly.

Written by the indexing model from the issue text.

Description

migrated googlesamples

Hi.
I connected my MIDI DEVICE with App.
I've entered the key quickly in DEVICE, but it takes more than 3 seconds to get it from the app.
Was this delay intended?
Is there a solution for getting input fast?
Thank you.

12-30 14:11:45.120 6267-6320/com.example.android.midiscope I/MidiScope: 52.434: 90 3C 2B: NoteOn(1, 60, 43)
12-30 14:11:48.173 6267-6320/com.example.android.midiscope I/MidiScope: 55.487: 90 3C 00: NoteOn(1, 60, 0)
12-30 14:11:51.181 6267-6320/com.example.android.midiscope I/MidiScope: 58.497: 90 3C 3E: NoteOn(1, 60, 62)

Dominant language
Kotlin
Stars
1.4k
Forks
777
Avg merge
1m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/media-samples

All issues in android/media-samples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.