| 306 | } |
| 307 | |
| 308 | void CInstrumentEditorFDS::ParseWaveString(std::string_view sv) |
| 309 | { |
| 310 | int i = 0; |
| 311 | for (auto x : re::tokens(sv)) { // // // |
| 312 | int value = CSequenceInstrumentEditPanel::ReadStringValue(re::sv_from_submatch(x[0])); |
| 313 | m_pInstrument->SetSample(i, std::clamp(value, 0, 63)); // // // |
| 314 | if (++i >= 64) |
| 315 | break; |
| 316 | } |
| 317 | |
| 318 | GetDocument()->ModifyIrreversible(); // // // |
| 319 | m_pWaveEditor->RedrawWindow(); |
| 320 | FTEnv.GetSoundGenerator()->WaveChanged(); |
| 321 | } |
| 322 | |
| 323 | void CInstrumentEditorFDS::OnBnClickedCopyTable() |
| 324 | { |
nothing calls this directly
no test coverage detected