27 PulseWidth(l10n::String name, l10n::String title_format_str, int32_t newP)
30 [[nodiscard]] std::string_view
getTitle()
const override {
return FormattedTitle::title(); }
32 int32_t getFinalValue()
override {
return computeFinalValueForHalfPrecisionMenuItem(this->getValue()); }
35 this->setValue(computeCurrentValueForHalfPrecisionMenuItem(
36 soundEditor.currentParamManager->getPatchedParamSet()->getValue(getP())));
40 Sound* sound =
static_cast<Sound*
>(modControllable);
41 if (sound->getSynthMode() == SynthMode::FM) {
44 OscType oscType = sound->sources[whichThing].oscType;
45 return (oscType != OscType::SAMPLE && oscType != OscType::INPUT_L && oscType != OscType::INPUT_R
46 && oscType != OscType::INPUT_STEREO);