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

Method LoadLayout

Source/ModularSynth.cpp:2529–2548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2527}
2528
2529void ModularSynth::LoadLayout(ofxJSONElement json)
2530{
2531 ScriptModule::UninitializePython();
2532 Transport::sDoEventLookahead = false;
2533
2534 //ofLoadURLAsync("http://bespoke.com/telemetry/"+jsonFile);
2535
2536 ScopedMutex mutex(&mAudioThreadMutex, "LoadLayout()");
2537 std::lock_guard<std::recursive_mutex> renderLock(mRenderLock);
2538
2539 ResetLayout();
2540
2541 mModuleContainer.LoadModules(json["modules"]);
2542 mUILayerModuleContainer.LoadModules(json["ui_modules"]);
2543
2544 //timer.PrintCosts();
2545
2546 mZoomer.LoadFromSaveData(json["zoomlocations"]);
2547 ArrangeAudioSourceDependencies();
2548}
2549
2550void ModularSynth::UpdateUserPrefsLayout()
2551{

Callers

nothing calls this directly

Calls 2

LoadModulesMethod · 0.80
LoadFromSaveDataMethod · 0.80

Tested by

no test coverage detected