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

Method LoadState

Source/NoteStepSequencer.cpp:1536–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534}
1535
1536void NoteStepSequencer::LoadState(FileStreamIn& in, int rev)
1537{
1538 IDrawableModule::LoadState(in, rev);
1539
1540 if (ModularSynth::sLoadingFileSaveStateRev < 423)
1541 in >> rev;
1542 LoadStateValidate(rev <= GetModuleSaveStateRev());
1543
1544 mGrid->LoadState(in);
1545 mVelocityGrid->LoadState(in);
1546 GridUpdated(mGrid, 0, 0, 0, 0);
1547 GridUpdated(mVelocityGrid, 0, 0, 0, 0);
1548 if (rev >= 2)
1549 in >> mHasExternalPulseSource;
1550 if (rev >= 3)
1551 {
1552 float width, height;
1553 in >> width;
1554 in >> height;
1555 Resize(width, height);
1556 }
1557}

Callers

nothing calls this directly

Calls 1

LoadStateValidateFunction · 0.85

Tested by

no test coverage detected