23class ModulatorLevel final :
public PatchedParam,
public FormattedTitle {
25 ModulatorLevel(l10n::String name, int32_t newP, uint8_t source_id)
26 : PatchedParam(name, newP, source_id), FormattedTitle(name, source_id + 1) {}
28 [[nodiscard]] std::string_view
getTitle()
const override {
return FormattedTitle::title(); }
29 [[nodiscard]] std::string_view
getName()
const override {
return FormattedTitle::title(); }
32 Sound* sound =
static_cast<Sound*
>(modControllable);
33 return sound->getSynthMode() == SynthMode::FM;
36 [[nodiscard]] NumberStyle getNumberStyle()
const override {
return LEVEL; }
38 void getColumnLabel(
StringBuf& label)
override { label.append(
getName().substr(2).data()); }