add ToMessage() for VmcExtMidiCcVal

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-16 20:05:40 -04:00
parent 93a2f6d6ef
commit 772888af14

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -46,5 +47,13 @@ namespace godotVmcSharp
knob = _knob; knob = _knob;
value = _value; value = _value;
} }
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(knob, 'i'),
new godotOscSharp.OscArgument(value, 'f')
});
}
} }
} }