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

Method WriteModulation

Source/CanvasElement.cpp:413–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void NoteCanvasElement::WriteModulation(float pos, float pitchBend, float modWheel, float pressure, float pan)
414{
415 float curveTime = (pos - GetStart()) * mCanvas->GetLength();
416 curveTime = FloatWrap(curveTime, mCanvas->GetLength());
417 mPitchBendCurve.AddPoint(CurvePoint(curveTime, pitchBend));
418 mModWheelCurve.AddPoint(CurvePoint(curveTime, modWheel));
419 mPressureCurve.AddPoint(CurvePoint(curveTime, pressure));
420 mPanCurve.AddPoint(CurvePoint(curveTime, pan));
421}
422
423namespace
424{

Callers 2

OnTransportAdvancedMethod · 0.80
OnTransportAdvancedMethod · 0.80

Calls 4

FloatWrapFunction · 0.85
CurvePointClass · 0.85
AddPointMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected