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

Method LoadLayout

Source/OutputChannel.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void OutputChannel::LoadLayout(const ofxJSONElement& moduleInfo)
145{
146 if (!moduleInfo["channel"].isNull())
147 mModuleSaveData.LoadInt("channel", moduleInfo, 0, 0, TheSynth->GetNumOutputChannels() - 1);
148 mModuleSaveData.LoadEnum<int>("channels", moduleInfo, 0, mChannelSelector);
149 mModuleSaveData.LoadFloat("limit", moduleInfo, 1, 0, 1000, K(isTextField));
150
151 SetUpFromSaveData();
152}
153
154void OutputChannel::SetUpFromSaveData()
155{

Callers

nothing calls this directly

Calls 3

LoadIntMethod · 0.80
GetNumOutputChannelsMethod · 0.80
LoadFloatMethod · 0.80

Tested by

no test coverage detected