--------------------------------------------------------------
| 1299 | |
| 1300 | //-------------------------------------------------------------- |
| 1301 | void 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 | //-------------------------------------------------------------- |
| 1326 | DurationProjectSettings DurationController::defaultProjectSettings(){ |
nothing calls this directly
no test coverage detected