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

Method LoadLayout

Source/StepSequencer.cpp:1001–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001void StepSequencer::LoadLayout(const ofxJSONElement& moduleInfo)
1002{
1003 mModuleSaveData.LoadString("target", moduleInfo);
1004 mModuleSaveData.LoadInt("gridrows", moduleInfo, 8, 1, NUM_STEPSEQ_ROWS);
1005 mModuleSaveData.LoadInt("gridmeasures", moduleInfo, 1, 1, 16);
1006 mModuleSaveData.LoadBool("multislider_mode", moduleInfo, true);
1007
1008 EnumMap noteInputModeMap;
1009 noteInputModeMap["play step index"] = (int)NoteInputMode::PlayStepIndex;
1010 noteInputModeMap["repeat held"] = (int)NoteInputMode::RepeatHeld;
1011 mModuleSaveData.LoadEnum<NoteInputMode>("note_input_mode", moduleInfo, (int)NoteInputMode::PlayStepIndex, nullptr, &noteInputModeMap);
1012
1013 EnumMap velEntryModeMap;
1014 velEntryModeMap["dropdown"] = (int)StepVelocityEntryMode::Dropdown;
1015 velEntryModeMap["slider"] = (int)StepVelocityEntryMode::Slider;
1016 mModuleSaveData.LoadEnum<StepVelocityEntryMode>("velocity_entry_mode", moduleInfo, (int)StepVelocityEntryMode::Dropdown, nullptr, &velEntryModeMap);
1017
1018 SetUpFromSaveData();
1019}
1020
1021void StepSequencer::SetUpFromSaveData()
1022{

Callers

nothing calls this directly

Calls 3

LoadStringMethod · 0.80
LoadIntMethod · 0.80
LoadBoolMethod · 0.80

Tested by

no test coverage detected