| 156 | } |
| 157 | |
| 158 | void ControlRecorder::RecordPoint() |
| 159 | { |
| 160 | IUIControl* target = dynamic_cast<IUIControl*>(GetPatchCableSource()->GetTarget()); |
| 161 | if (target) |
| 162 | { |
| 163 | float time = TheTransport->GetMeasureTime(gTime) - mRecordStartOffset; |
| 164 | mCurve.AddPointAtEnd(CurvePoint(time, target->GetMidiValue())); |
| 165 | mCurve.SetExtents(0, time); |
| 166 | mHasRecorded = true; |
| 167 | mLength = time; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | void ControlRecorder::SetRecording(bool record) |
| 172 | { |
nothing calls this directly
no test coverage detected