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

Method AdjustUIControl

Source/ScriptModule.cpp:793–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793void ScriptModule::AdjustUIControl(IUIControl* control, float value, double time, int lineNum)
794{
795 control->SetValue(value, time);
796
797 mUIControlTracker.AddEvent(lineNum);
798
799 for (size_t i = 0; i < mUIControlModifications.size(); ++i)
800 {
801 if (mUIControlModifications[i].time == -1 || mUIControlModifications[i].lineNum == lineNum)
802 {
803 mUIControlModifications[i].time = gTime;
804 mUIControlModifications[i].position = control->GetRect().getCenter();
805 mUIControlModifications[i].value = value;
806 mUIControlModifications[i].lineNum = lineNum;
807 break;
808 }
809 }
810}
811
812void ScriptModule::PlayNote(double time, float pitch, float velocity, float pan, int noteOutputIndex, int lineNum)
813{

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.80
getCenterMethod · 0.80
SetValueMethod · 0.45
AddEventMethod · 0.45
GetRectMethod · 0.45

Tested by

no test coverage detected