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

Method SaveState

Source/StepSequencer.cpp:1041–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041void StepSequencer::SaveState(FileStreamOut& out)
1042{
1043 out << GetModuleSaveStateRev();
1044
1045 IDrawableModule::SaveState(out);
1046
1047 mGrid->SaveState(out);
1048
1049 int numMetaStepMasks = META_STEP_MAX * NUM_STEPSEQ_ROWS;
1050 out << numMetaStepMasks;
1051 for (int i = 0; i < numMetaStepMasks; ++i)
1052 out << mMetaStepMasks[i];
1053 out << mHasExternalPulseSource;
1054
1055 out << mGrid->GetWidth();
1056 out << mGrid->GetHeight();
1057}
1058
1059void StepSequencer::LoadState(FileStreamIn& in, int rev)
1060{

Callers

nothing calls this directly

Calls 2

GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected