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

Method SetUpFromSaveData

Source/SignalGenerator.cpp:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314void SignalGenerator::SetUpFromSaveData()
315{
316 SetTarget(TheSynth->FindModule(mModuleSaveData.GetString("target")));
317 SetVol(mModuleSaveData.GetFloat("vol"));
318 SetType(mModuleSaveData.GetEnum<OscillatorType>("osc"));
319 mDetune = mModuleSaveData.GetFloat("detune");
320 SetFreqMode(mModuleSaveData.GetEnum<FreqMode>("freq_mode"));
321}
322
323void SignalGenerator::DropdownUpdated(DropdownList* list, int oldVal, double time)
324{

Callers

nothing calls this directly

Calls 3

GetStringMethod · 0.80
GetFloatMethod · 0.80
FindModuleMethod · 0.45

Tested by

no test coverage detected