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

Method bangFired

Duration/src/DurationController.cpp:825–843  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

823
824//--------------------------------------------------------------
825void DurationController::bangFired(ofxTLBangEventArgs& bang){
826// ofLogNotice() << "Bang from " << bang.track->getDisplayName() << " at time " << bang.currentTime << " with flag " << bang.flag;
827 if(!settings.oscOutEnabled){
828 return;
829 }
830
831 string trackType = bang.track->getTrackType();
832 if(!headers[bang.track->getName()]->sendOSC()){
833 return;
834 }
835 ofxOscMessage m;
836 m.setAddress( ofFilePath::addLeadingSlash(bang.track->getDisplayName()) );
837
838 if(trackType == "Flags"){
839 m.addStringArg(bang.flag);
840 }
841
842 bangsReceived.push_back(m);
843}
844
845//--------------------------------------------------------------
846void DurationController::guiEvent(ofxUIEventArgs &e){

Callers

nothing calls this directly

Calls 2

getTrackTypeMethod · 0.80
sendOSCMethod · 0.80

Tested by

no test coverage detected