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

Method LoadLayout

Source/MultitrackRecorder.cpp:188–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void MultitrackRecorder::LoadLayout(const ofxJSONElement& moduleInfo)
189{
190 mModuleContainer.LoadModules(moduleInfo["modules"]);
191
192 for (auto* child : mModuleContainer.GetModules())
193 {
194 MultitrackRecorderTrack* track = dynamic_cast<MultitrackRecorderTrack*>(child);
195 if (!VectorContains(track, mTracks))
196 {
197 track->Setup(this, GetRecordingLength());
198 mTracks.push_back(track);
199 }
200 }
201
202 if (mTracks.size() == 0)
203 AddTrack();
204
205 SetUpFromSaveData();
206}
207
208void MultitrackRecorder::SetUpFromSaveData()
209{

Callers

nothing calls this directly

Calls 5

VectorContainsFunction · 0.85
AddTrackFunction · 0.85
LoadModulesMethod · 0.80
sizeMethod · 0.80
SetupMethod · 0.45

Tested by

no test coverage detected