MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / ParseTableString

Method ParseTableString

Source/InstrumentEditorFDS.cpp:339–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void CInstrumentEditorFDS::ParseTableString(std::string_view sv)
340{
341 int i = 0;
342 for (auto x : re::tokens(sv)) { // // //
343 int value = CSequenceInstrumentEditPanel::ReadStringValue(re::sv_from_submatch(x[0]));
344 m_pInstrument->SetModulation(i, std::clamp(value, 0, 7)); // // //
345 if (++i >= 32)
346 break;
347 }
348
349 GetDocument()->ModifyIrreversible(); // // //
350 m_pModSequenceEditor->RedrawWindow();
351 FTEnv.GetSoundGenerator()->WaveChanged();
352}
353
354void CInstrumentEditorFDS::OnBnClickedEnableFm()
355{

Callers

nothing calls this directly

Calls 7

tokensFunction · 0.85
sv_from_submatchFunction · 0.85
clampFunction · 0.85
SetModulationMethod · 0.80
ModifyIrreversibleMethod · 0.80
WaveChangedMethod · 0.45
GetSoundGeneratorMethod · 0.45

Tested by

no test coverage detected