How do you negatively delay events? #320
-
I'm trying to make a plugin that can pre-delay MIDI events and I can't seem to figure out how to do it. I am using the latency extension to set the latency of the plugin, which I can see is working in my DAW, but I am unsure how to actually utilize the latency to negatively delay the MIDI. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
To clarify my problem, when I set the latency with the latency extension, the plugin reports that there is latency to my DAW, but I am not seeing any events ahead of time. If I immediately send events when I see them in the process function, they are not pre-delayed. |
Beta Was this translation helpful? Give feedback.
-
I seem to have fixed it but I'm a bit confused. I was thinking since the time field in the event header is uint32_t, that it would only be positive, but if I send negative times and underflow that value they are showing up properly. Is this expected behavior? |
Beta Was this translation helpful? Give feedback.
No, I don‘t think so. Probably there is a bug in Reaper. PDC is hard sometimes. :)