free-audio / clap-host

Reference Host
MIT License
58 stars 15 forks source link

Parameter value changes are ignored when *_GESTURE_BEGIN -> *_PARAM_VALUE * -> _GESTURE_END happen in the same sample #7

Closed robbert-vdh closed 2 years ago

robbert-vdh commented 2 years ago

When a plugin begins an automation gesture, sets a value, and then ends the automation gesture all during the same sample clap-host will currently ignore the value change. This is likely because the host doesn't add these events to a queue but rather assigns the event to a parameter index, causing any other events that happened for that parameter to be overridden:

https://github.com/free-audio/clap-host/blob/67ed777e62f3284112fa929dc0d3e8da7eb602f1/host/plugin-host.cc#L826