| 337 | } |
| 338 | |
| 339 | void 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 | |
| 354 | void CInstrumentEditorFDS::OnBnClickedEnableFm() |
| 355 | { |
nothing calls this directly
no test coverage detected