# MIDI notes issue

**URL:** <https://forum.toplap.org/t/midi-notes-issue/1957>\
**Category:** Foxdot\
**Created:** [14 February 2022 16:26 UTC](https://forum.toplap.org/t/midi-notes-issue/1957 "2022-02-14T16:26:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvillalba](https://forum.toplap.org/user_avatar/forum.toplap.org/dvillalba/32/1081_2.png) [@dvillalba](https://forum.toplap.org/u/dvillalba)\
**Post date:** [14 February 2022 16:26 UTC](https://forum.toplap.org/t/midi-notes-issue/1957/1 "2022-02-14T16:26:00Z")

</div>

Hi! I’ve been working with FoxDot for several months and have seen in documentation and in my own experience that there is a problem sending midi notes to external devices:

> _Be careful when repeating the same note with the same duration; if a MIDI note-on event is triggered slightly before the MIDI note-off for the previous event, it will be stopped by the note-off. This is a known bug and being looked into._

Some has found a way to avoid this?  
I’m working with REAPER in windows  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![OkPsychology](https://forum.toplap.org/user_avatar/forum.toplap.org/okpsychology/32/1058_2.png) [@OkPsychology](https://forum.toplap.org/u/OkPsychology)\
**Post date:** [27 February 2022 01:50 UTC](https://forum.toplap.org/t/midi-notes-issue/1957/2 "2022-02-27T01:50:20Z")

</div>

Hey there. What I’ve been doing lately is setting the sus of the player object to a value just short of the dur, so that I don’t have overlap and thus squelching of poorly timed midi signals. Try something like this:

```auto
m1 >> MidiOut(P[0], dur=1, sus=(m1.dur - 0.1))

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![dvillalba](https://forum.toplap.org/user_avatar/forum.toplap.org/dvillalba/32/1081_2.png) [@dvillalba](https://forum.toplap.org/u/dvillalba)\
**Post date:** [1 March 2022 15:06 UTC](https://forum.toplap.org/t/midi-notes-issue/1957/3 "2022-03-01T15:06:25Z")

</div>

Yes it works! thanks you very much!!

---

<div class="post-metadata">

**Author:** ![Subcentz](https://forum.toplap.org/user_avatar/forum.toplap.org/subcentz/32/1274_2.png) [@Subcentz](https://forum.toplap.org/u/Subcentz)\
**Post date:** [21 June 2024 11:42 UTC](https://forum.toplap.org/t/midi-notes-issue/1957/4 "2024-06-21T11:42:30Z")

</div>

I’ve been working with FoxDot for a few months now and I’ve definitely come across that MIDI issue. It can be a bit tricky when notes overlap unexpectedly. Personally, I’ve found that making slight adjustments to note durations or adding a tiny gap between repeated notes can sometimes help mitigate the problem.

I haven’t used REAPER myself, but I’ve stumbled upon this handy online notepad to keep [notes online](https://notesonline.com/notepad). It’s like a virtual notebook where people share their experiences and solutions. Once, I found a note about MIDI timing quirks that really shed some light on similar issues.
