RustAudio / rust-lv2

A safe, fast, and modular framework to create LV2 plugins, written in Rust
Apache License 2.0
171 stars 23 forks source link

fix offset calculation in midigate #104

Closed YruamaLairba closed 2 years ago

YruamaLairba commented 2 years ago

Hi, found and fixed an error in midigate example. This error result in crash with the following conditions: host : jalv or ardour, with inPlaceBroken removed from the midigate.ttl for the test. sending many notes to the plugin. Making a "glissando" with Jack keyboard is generally enough

prokopyl commented 2 years ago

Nice catch, thanks for the fix!

I see there is a clippy fail, but it seems this is only due to a recent update and not to your change, so I'm merging this anyway. :slightly_smiling_face: