MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / RecordPoint

Method RecordPoint

Source/ControlRecorder.cpp:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void 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
171void ControlRecorder::SetRecording(bool record)
172{

Callers

nothing calls this directly

Calls 6

CurvePointClass · 0.85
GetMeasureTimeMethod · 0.80
AddPointAtEndMethod · 0.80
GetTargetMethod · 0.45
GetMidiValueMethod · 0.45
SetExtentsMethod · 0.45

Tested by

no test coverage detected