# Questions on SynthVoice/Retriger

**URL:** <https://iplug2.discourse.group/t/questions-on-synthvoice-retriger/140>\
**Category:** Uncategorized\
**Created:** [1 July 2020 07:36 UTC](https://iplug2.discourse.group/t/questions-on-synthvoice-retriger/140 "2020-07-01T07:36:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/alex/32/72_2.png) [@Alex](https://iplug2.discourse.group/u/Alex)\
**Post date:** [1 July 2020 07:36 UTC](https://iplug2.discourse.group/t/questions-on-synthvoice-retriger/140/1 "2020-07-01T07:36:18Z")

</div>

1. Is there any way to define that voice was retriggered (i.e. note was released) in void ProcessSamplesAccumulating()? I just would like to have a different process in such a case.

2. Just to note also that in IPlugIntrument example it seems that the Synthvoice is not killed (at least until MAX\_ENV\_TIME\_MS) - so it creates some additional CPU overhead when handling polyphony. If so, then how to kill Synthvoice exactly right after the end of the note release?

Thanks for any clue.

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/alex/32/72_2.png) [@Alex](https://iplug2.discourse.group/u/Alex)\
**Post date:** [6 July 2020 09:39 UTC](https://iplug2.discourse.group/t/questions-on-synthvoice-retriger/140/2 "2020-07-06T09:39:06Z")

</div>

I figured out myself. Everything is clear now. The bool GetBusy() was the key. So, I can eliminate using ADSREnvelope and can implement my note handling algo instead.

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/alex/32/72_2.png) [@Alex](https://iplug2.discourse.group/u/Alex)\
**Post date:** [13 July 2020 14:05 UTC](https://iplug2.discourse.group/t/questions-on-synthvoice-retriger/140/4 "2020-07-13T14:05:14Z")

</div>

It is working perfectly. Win/Mac VST/AU e tc.Amazing work, amazing library. Thanks, Oli.

---

<div class="post-metadata">

**Author:** ![radiofarmer](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@radiofarmer](https://iplug2.discourse.group/u/radiofarmer)\
**Post date:** [24 December 2020 13:20 UTC](https://iplug2.discourse.group/t/questions-on-synthvoice-retriger/140/5 "2020-12-24T13:20:01Z")

</div>

Would you mind describing how you ended up changing the function? I’m currently getting crackling/dropped samples when new notes are triggered while other voices are still in their release stage, so I checked the forum to see whether anyone else had tackled a similar issue. The fact that I don’t hear any distortion while simply playing multiple notes at once (only when playing several in succession with long release times) makes me think that it has to do with the envelope-voice interaction, but I haven’t yet figured out how that works, and perhaps you can shed some light on the matter.
