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

Method setValueRange

Duration/src/ofxTLUIHeader.cpp:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206//}
207
208void ofxTLUIHeader::setValueRange(ofRange range){
209 if(getTrackType() == "Curves" || getTrackType() == "LFO"){
210 minDialer->setValue(range.min);
211 maxDialer->setValue(range.max);
212 ((ofxTLKeyframes*)getTrack())->setValueRange(range);
213 }
214 else{
215 ofLogError("ofxTLUIHeader::setValueMax") << "Cannot set value range on tracks that aren't curves";
216 }
217}
218
219void ofxTLUIHeader::setValueMin(float min){
220 if(getTrackType() == "Curves" || getTrackType() == "LFO"){

Callers 3

handleOscInMethod · 0.80
loadProjectMethod · 0.80
guiEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected