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

Method SetLayoutData

Source/Monome.cpp:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void Monome::SetLayoutData(ofxJSONElement& layout)
157{
158 try
159 {
160 if (!layout["monome_rotation"].isNull())
161 mGridRotation = layout["monome_rotation"].asInt();
162 }
163 catch (Json::LogicError& e)
164 {
165 TheSynth->LogEvent(__PRETTY_FUNCTION__ + std::string(" json error: ") + e.what(), kLogEventType_Error);
166 }
167}
168
169void Monome::ConnectToDevice(std::string deviceDesc)
170{

Callers 2

LoadControllerLayoutMethod · 0.45
ConnectDeviceMethod · 0.45

Calls 1

LogEventMethod · 0.80

Tested by

no test coverage detected