mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add stable IDs to the plugin's enum parameters
Existing instances will automatically be upgraded to these IDs when the instance gets saved. This makes it possible to rearrange things later when needed.
This commit is contained in:
@@ -102,10 +102,13 @@ struct CrispParams {
|
||||
#[derive(Enum, Debug, PartialEq)]
|
||||
enum Mode {
|
||||
/// RM the entire waveform.
|
||||
#[id = "soggy"]
|
||||
Soggy,
|
||||
/// RM only the positive part of the waveform.
|
||||
#[id = "crispy"]
|
||||
Crispy,
|
||||
/// RM only the negative part of the waveform.
|
||||
#[id = "crispy-negated"]
|
||||
#[name = "Crispy (alt)"]
|
||||
CrispyNegated,
|
||||
}
|
||||
@@ -114,8 +117,10 @@ enum Mode {
|
||||
#[derive(Enum, Debug, PartialEq)]
|
||||
enum StereoMode {
|
||||
/// Use the same noise for both channels.
|
||||
#[id = "mono"]
|
||||
Mono,
|
||||
/// Use a different noise source per channel.
|
||||
#[id = "stereo"]
|
||||
Stereo,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user