VST playhead never has the state stop in Logic Pro X, MIDI plugin


I have a problem where I have a MIDI generating plugin which needs to be able to reset some parameters on playHead stop as well as send allNoteOff event. This works fine for my PC programs, but under MacOSX Logic the playHead isPlaying never goes to false.

I´ve seen some threads about this on the forums, and I’ve tried to define the plugin as a generator (suggest by someone on the forums), I’ve tried returning a positive number of many sizes instead of zero from the getTailLengthSeconds function. (also mentioned on the forums), but it seems that Logic just will not processBlock while the playHead is stopped.

Does anyone have any experience or suggestions for me to try out ?

kindest regards,
Jón Hallur