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:
parent
449adb8bfc
commit
f7bfbb8d95
|
@ -102,10 +102,13 @@ struct CrispParams {
|
||||||
#[derive(Enum, Debug, PartialEq)]
|
#[derive(Enum, Debug, PartialEq)]
|
||||||
enum Mode {
|
enum Mode {
|
||||||
/// RM the entire waveform.
|
/// RM the entire waveform.
|
||||||
|
#[id = "soggy"]
|
||||||
Soggy,
|
Soggy,
|
||||||
/// RM only the positive part of the waveform.
|
/// RM only the positive part of the waveform.
|
||||||
|
#[id = "crispy"]
|
||||||
Crispy,
|
Crispy,
|
||||||
/// RM only the negative part of the waveform.
|
/// RM only the negative part of the waveform.
|
||||||
|
#[id = "crispy-negated"]
|
||||||
#[name = "Crispy (alt)"]
|
#[name = "Crispy (alt)"]
|
||||||
CrispyNegated,
|
CrispyNegated,
|
||||||
}
|
}
|
||||||
|
@ -114,8 +117,10 @@ enum Mode {
|
||||||
#[derive(Enum, Debug, PartialEq)]
|
#[derive(Enum, Debug, PartialEq)]
|
||||||
enum StereoMode {
|
enum StereoMode {
|
||||||
/// Use the same noise for both channels.
|
/// Use the same noise for both channels.
|
||||||
|
#[id = "mono"]
|
||||||
Mono,
|
Mono,
|
||||||
/// Use a different noise source per channel.
|
/// Use a different noise source per channel.
|
||||||
|
#[id = "stereo"]
|
||||||
Stereo,
|
Stereo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,9 @@ impl DiopserParams {
|
||||||
|
|
||||||
#[derive(Enum, Debug, PartialEq)]
|
#[derive(Enum, Debug, PartialEq)]
|
||||||
enum SpreadStyle {
|
enum SpreadStyle {
|
||||||
|
#[id = "octaves"]
|
||||||
Octaves,
|
Octaves,
|
||||||
|
#[id = "linear"]
|
||||||
Linear,
|
Linear,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,10 +86,12 @@ struct PubertySimulatorParams {
|
||||||
enum PitchShiftingMode {
|
enum PitchShiftingMode {
|
||||||
/// Directly linearly interpolate sine and cosine waves from different bins. This obviously
|
/// Directly linearly interpolate sine and cosine waves from different bins. This obviously
|
||||||
/// sounds very bad, but it also sounds kind of hilarious.
|
/// sounds very bad, but it also sounds kind of hilarious.
|
||||||
|
#[id = "interpolated-rectangular"]
|
||||||
#[name = "Very broken"]
|
#[name = "Very broken"]
|
||||||
InterpolateRectangular,
|
InterpolateRectangular,
|
||||||
/// The same as `InterpolateRectangular`, but interpolating the polar forms instead. This sounds
|
/// The same as `InterpolateRectangular`, but interpolating the polar forms instead. This sounds
|
||||||
/// slightly better, which actually ends up making it sound a lot worse.
|
/// slightly better, which actually ends up making it sound a lot worse.
|
||||||
|
#[id = "interpolated-polar"]
|
||||||
#[name = "Also very broken"]
|
#[name = "Also very broken"]
|
||||||
InterpolatePolar,
|
InterpolatePolar,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue