free-audio / clap

Audio Plugin API
https://cleveraudio.org/
MIT License
1.78k stars 100 forks source link

Add draft midici-profiles.h #340

Closed Bremmers closed 12 months ago

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

abique commented 1 year ago

Can you activate or de-activate a midi ci profile while the plugin is activated?

Bremmers commented 1 year ago

I think so. Activating a profile would basically change the controller mapping. It wouldn't change the topology in ways that require the plugin to deactivate/reactivate AFAICS.

Bremmers commented 1 year ago

To tackle some of the TODOs we could

1) add port and channel params to all function. Like this:

uint32_t(CLAP_ABI count)(const clap_plugin_t plugin, clap_id port, int16_t channel);

2) define a MIDICI_AllChannels const (0x7F) which can be passed as channel param. This this what the MIDI specs and Apple do.

Or would 1) be too ugly?