removed some unused code in Diskwriter::writeControllerFile
parent
efc531206d
commit
371bbf7f04
|
@ -218,33 +218,6 @@ int DiskWriter::writeControllerFile( Controller* c )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//std::vector<Binding*> b = g->getMidiToAction();
|
||||
/*
|
||||
cJSON* outputBindings = cJSON_CreateArray();
|
||||
cJSON_AddItemToObject(controllerJson, "outputBindings", outputBindings );
|
||||
|
||||
for(unsigned int i = 0; i < b.size(); i++ )
|
||||
{
|
||||
// create binding
|
||||
cJSON* binding = cJSON_CreateObject();
|
||||
cJSON_AddItemToArray( outputBindings, binding );
|
||||
|
||||
// add metadata to binding
|
||||
// FIXME: get action string from Event class: need to move function from GenericMIDI to there
|
||||
cJSON_AddItemToObject( binding, "action", cJSON_CreateString( "gridlogic:launchscene" ) );
|
||||
|
||||
cJSON_AddNumberToObject( binding, "status", b.at(i)->status );
|
||||
cJSON_AddNumberToObject( binding, "data" , b.at(i)->data );
|
||||
|
||||
cJSON_AddNumberToObject( binding, "track" , b.at(i)->track );
|
||||
cJSON_AddNumberToObject( binding, "scene" , b.at(i)->scene );
|
||||
cJSON_AddNumberToObject( binding, "send" , b.at(i)->send );
|
||||
cJSON_AddNumberToObject( binding, "active", b.at(i)->active );
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// write the sample JSON node to <samplePath>/sample.cfg
|
||||
stringstream controllerCfgPath;
|
||||
controllerCfgPath << getenv("HOME") << "/.config/openAV/luppp/controllers/" << g->getName() << ".ctlr";
|
||||
|
|
Loading…
Reference in New Issue