add ToMessage() for VmcExtMidiNote
This commit is contained in:
		
							parent
							
								
									d522d5b4ca
								
							
						
					
					
						commit
						00df307240
					
				|  | @ -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') | ||||
|             }); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user