create new constructor for VmcExtMidiCcBit

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-16 19:56:00 -04:00
parent 1066ba4935
commit 802f2997c2

View File

@ -45,5 +45,16 @@ namespace godotVmcSharp
knob = (int)m.Data[0].Value; knob = (int)m.Data[0].Value;
active = (int)m.Data[1].Value; active = (int)m.Data[1].Value;
} }
public VmcExtMidiCcBit(int _knob, int _active) : base(new godotOscSharp.Address("/VMC/Ext/Midi/CC/Bit"))
{
if (_active < 0 || _active > 1)
{
GD.Print($"Invalid value for \"active\" argument of {addr}. Expected 0 or 1, received {_active}.");
return;
}
knob = _knob;
active = _active;
}
} }
} }