1
0
Fork 0

Enable modulation for CLAP parameters

Everything else has already been implemented, but this is kind of
important.
This commit is contained in:
Robbert van der Helm 2022-05-02 11:51:56 +02:00
parent 56cd227543
commit 10ae8e1d05

View file

@ -36,8 +36,9 @@ use clap_sys::ext::note_ports::{
}; };
use clap_sys::ext::params::{ use clap_sys::ext::params::{
clap_host_params, clap_param_info, clap_plugin_params, CLAP_EXT_PARAMS, clap_host_params, clap_param_info, clap_plugin_params, CLAP_EXT_PARAMS,
CLAP_PARAM_IS_AUTOMATABLE, CLAP_PARAM_IS_BYPASS, CLAP_PARAM_IS_HIDDEN, CLAP_PARAM_IS_READONLY, CLAP_PARAM_IS_AUTOMATABLE, CLAP_PARAM_IS_BYPASS, CLAP_PARAM_IS_HIDDEN,
CLAP_PARAM_IS_STEPPED, CLAP_PARAM_RESCAN_VALUES, CLAP_PARAM_IS_MODULATABLE, CLAP_PARAM_IS_READONLY, CLAP_PARAM_IS_STEPPED,
CLAP_PARAM_RESCAN_VALUES,
}; };
use clap_sys::ext::state::{clap_plugin_state, CLAP_EXT_STATE}; use clap_sys::ext::state::{clap_plugin_state, CLAP_EXT_STATE};
use clap_sys::ext::tail::{clap_plugin_tail, CLAP_EXT_TAIL}; use clap_sys::ext::tail::{clap_plugin_tail, CLAP_EXT_TAIL};
@ -2440,7 +2441,7 @@ impl<P: ClapPlugin> Wrapper<P> {
param_info.id = *param_hash; param_info.id = *param_hash;
// TODO: Somehow expose per note/channel/port modulation // TODO: Somehow expose per note/channel/port modulation
param_info.flags = if automatable { param_info.flags = if automatable {
CLAP_PARAM_IS_AUTOMATABLE CLAP_PARAM_IS_AUTOMATABLE | CLAP_PARAM_IS_MODULATABLE
} else { } else {
CLAP_PARAM_IS_HIDDEN | CLAP_PARAM_IS_READONLY CLAP_PARAM_IS_HIDDEN | CLAP_PARAM_IS_READONLY
}; };