void mAutoMode_OnAutoModeTimeChanged(DmxFramework.AutoMode.AutoMode pAutomode, int pTime) { if (pTime == mSendValue) { return; } int NEwVal = (int)((pTime - AutoMode.AutoMode.MinTime) / mRatio); int value = 127 - NEwVal; SendValueToMidi(value); }
void mAutoMode_OnAutoModePresetStateChanged(DmxFramework.AutoMode.AutoMode pAutoMode, AutoPreset pAutoPreset, bool pEnabled) { if (pAutoPreset != mPreset) { return; } if (pEnabled) { SendValueToMidi(127); } else { SendValueToMidi(0); } }