25 WaveIndex(l10n::String name, l10n::String title_format_str, int32_t newP, uint8_t source_id)
26 : PatchedParam(name, newP, source_id), FormattedTitle(title_format_str, source_id + 1) {}
28 [[nodiscard]] std::string_view
getTitle()
const override {
return FormattedTitle::title(); }
31 const auto sound =
static_cast<Sound*
>(modControllable);
32 auto& source = sound->sources[source_id_];
33 return sound->getSynthMode() != SynthMode::FM && source.oscType == OscType::WAVETABLE
34 && source.hasAtLeastOneAudioFileLoaded();
37 [[nodiscard]] NumberStyle getNumberStyle()
const override {
return SLIDER; }