| 227 | } |
| 228 | |
| 229 | void ofxTLUIHeader::setValueMax(float max){ |
| 230 | if(getTrackType() == "Curves" || getTrackType() == "LFO"){ |
| 231 | maxDialer->setValue(max); |
| 232 | ((ofxTLKeyframes*)getTrack())->setValueRangeMin(max); |
| 233 | } |
| 234 | else{ |
| 235 | ofLogError("ofxTLUIHeader::setValueMax") << "Cannot set max value on tracks that aren't curves"; |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | ofxUICanvas* ofxTLUIHeader::getGui(){ |
| 240 | return gui; |