MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / sendInfoMessage

Method sendInfoMessage

Duration/src/DurationController.cpp:1301–1323  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

1299
1300//--------------------------------------------------------------
1301void DurationController::sendInfoMessage(){
1302 if(settings.oscOutEnabled){
1303 ofxOscMessage m;
1304 m.setAddress("/duration/info");
1305 vector<ofxTLPage*>& pages = timeline.getPages();
1306 for(int i = 0; i < pages.size(); i++){
1307 vector<ofxTLTrack*>& tracks = pages[i]->getTracks();
1308 for (int t = 0; t < tracks.size(); t++) {
1309 m.addStringArg(tracks[t]->getTrackType());
1310 m.addStringArg(ofFilePath::addLeadingSlash( tracks[t]->getDisplayName() ));
1311 if(tracks[t]->getTrackType() == "Curves" || tracks[t]->getTrackType() == "LFO"){
1312 ofxTLCurves* curves = (ofxTLCurves*)tracks[t];
1313 m.addFloatArg(curves->getValueRange().min);
1314 m.addFloatArg(curves->getValueRange().max);
1315 }
1316 }
1317 }
1318 oscLock.lock();
1319 sender.sendMessage(m);
1320 refreshAllOscOut = true;
1321 oscLock.unlock();
1322 }
1323}
1324
1325//--------------------------------------------------------------
1326DurationProjectSettings DurationController::defaultProjectSettings(){

Callers

nothing calls this directly

Calls 1

getTrackTypeMethod · 0.80

Tested by

no test coverage detected