add ToMessage() for VmcExtMidiNote

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-16 20:10:52 -04:00
parent d522d5b4ca
commit 00df307240

View File

@ -18,6 +18,7 @@
using Godot;
using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp
{
@ -73,5 +74,15 @@ namespace godotVmcSharp
note = _note;
velocity = _velocity;
}
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(active, 'i'),
new godotOscSharp.OscArgument(channel, 'i'),
new godotOscSharp.OscArgument(note, 'i'),
new godotOscSharp.OscArgument(velocity, 'f')
});
}
}
}