MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SetUpFromSaveData

Method SetUpFromSaveData

Source/StepSequencer.cpp:1021–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021void StepSequencer::SetUpFromSaveData()
1022{
1023 SetUpPatchCables(mModuleSaveData.GetString("target"));
1024 mNumRows = mModuleSaveData.GetInt("gridrows");
1025 mGrid->SetGrid(GetNumSteps(mStepInterval, mNumMeasures), mNumRows);
1026
1027 bool multisliderMode = mModuleSaveData.GetBool("multislider_mode");
1028 mGrid->SetGridMode(multisliderMode ? UIGrid::kMultisliderGrow : UIGrid::kNormal);
1029 mGrid->SetRestrictDragToRow(multisliderMode);
1030 mGrid->SetRequireShiftForMultislider(true);
1031
1032 mNoteInputMode = mModuleSaveData.GetEnum<NoteInputMode>("note_input_mode");
1033 mStepVelocityEntryMode = mModuleSaveData.GetEnum<StepVelocityEntryMode>("velocity_entry_mode");
1034
1035 if (mNoteInputMode == NoteInputMode::RepeatHeld)
1036 mHasExternalPulseSource = false;
1037
1038 mIsSetUp = true;
1039}
1040
1041void StepSequencer::SaveState(FileStreamOut& out)
1042{

Callers

nothing calls this directly

Calls 7

GetStringMethod · 0.80
GetIntMethod · 0.80
GetBoolMethod · 0.80
SetGridModeMethod · 0.80
SetRestrictDragToRowMethod · 0.80
SetGridMethod · 0.45

Tested by

no test coverage detected