# Latency between adding and playing a midi note

**URL:** <https://forum.juce.com/t/latency-between-adding-and-playing-a-midi-note/38452>\
**Category:** Tracktion Engine\
**Created:** [April 3, 2020, 3:58pm UTC](https://forum.juce.com/t/latency-between-adding-and-playing-a-midi-note/38452 "2020-04-03T15:58:44Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![LiamG](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/liamg/32/6844_2.png) [@LiamG](https://forum.juce.com/u/LiamG)\
**Post date:** [August 21, 2020, 9:11am UTC](https://forum.juce.com/t/latency-between-adding-and-playing-a-midi-note/38452/19 "2020-08-21T09:11:18Z")

</div>

Thanks for the clarification. You’ve [warned me against](https://forum.juce.com/t/accessing-midi-events-inside-a-custom-plugin/37193/5) doing this on the audio thread in the past, so I think I’ll stick to plan A for now. I feel like I’m getting close to a solution that will work tolerably well using the `AudioTrack::Listener` to catch notes that have been dropped. If that doesn’t work, I’ll think about the audio thread again.

---

_[View the full topic](https://forum.juce.com/t/latency-between-adding-and-playing-a-midi-note/38452)._
