# Voice stealing does not appear to work correctly in MPESynthesiser

**URL:** <https://forum.juce.com/t/voice-stealing-does-not-appear-to-work-correctly-in-mpesynthesiser/30032>\
**Category:** General JUCE discussion\
**Created:** [October 25, 2018, 7:25pm UTC](https://forum.juce.com/t/voice-stealing-does-not-appear-to-work-correctly-in-mpesynthesiser/30032 "2018-10-25T19:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [October 25, 2018, 7:25pm UTC](https://forum.juce.com/t/voice-stealing-does-not-appear-to-work-correctly-in-mpesynthesiser/30032/1 "2018-10-25T19:25:04Z")

</div>

Documentation says:

```
// This voice-stealing algorithm applies the following heuristics:
// - Re-use the oldest notes first
// - Protect the lowest & topmost notes, even if sustained, but not if they've been released.

```

Oldest note is determined by:

```
bool MPESynthesiserVoice::wasStartedBefore (const MPESynthesiserVoice& other) const noexcept
{
    return noteStartTime < other.noteStartTime;
}

```

However `MPESynthesiserVoice::noteStartTime` is never set and is private so I can’t set it in my voice.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [October 26, 2018, 8:47am UTC](https://forum.juce.com/t/voice-stealing-does-not-appear-to-work-correctly-in-mpesynthesiser/30032/2 "2018-10-26T08:47:37Z")

</div>

I’ll get that sorted, thanks.
