Change naming convention for formatters

This still isn't idea, but at least it's less ambiguous than it was
before this.
This commit is contained in:
Robbert van der Helm
2022-03-27 03:43:39 +02:00
parent 47a96ee02b
commit f37974448d
6 changed files with 53 additions and 44 deletions

View File

@@ -71,8 +71,8 @@ impl Default for SineParams {
.with_smoother(SmoothingStyle::Linear(10.0))
// We purposely don't specify a step size here, but the parameter should still be
// displayed as if it were rounded. This formatter also includes the unit.
.with_value_to_string(formatters::f32_hz_then_khz(0))
.with_string_to_value(formatters::from_f32_hz_then_khz()),
.with_value_to_string(formatters::v2s_f32_hz_then_khz(0))
.with_string_to_value(formatters::s2v_f32_hz_then_khz()),
use_midi: BoolParam::new("Use MIDI", false),
}
}