robbert-vdh / nih-plug

Rust VST3 and CLAP plugin framework and plugins - because everything is better when you do it yourself
ISC License
1.45k stars 129 forks source link

Track context information for VST3 and CLAP #119

Open 0x01011970 opened 3 months ago

0x01011970 commented 3 months ago

Hello,

Is there any way to retrieve the name of the track the plugin is placed on?

It seems it is supported by the Clap API, see https://github.com/free-audio/clap/blob/main/include/clap/ext/track-info.h#L40

Thanks for the help

0x01011970 commented 3 months ago

It seems it is implemented in clap-sys 0.4.0 https://github.com/glowcoil/clap-sys/blob/master/src/ext/draft/track_info.rs

robbert-vdh commented 2 months ago

Not at the moment. This is also possible with VST3. I'll add it to the todo list.