initial commit
This commit is contained in:
commit
08c8f0a8e1
20 changed files with 1744 additions and 0 deletions
26
test_midi.gd
Normal file
26
test_midi.gd
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
extends Node
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
OS.open_midi_inputs()
|
||||
print(OS.get_connected_midi_inputs())
|
||||
|
||||
func _input(input_event):
|
||||
if input_event is InputEventMIDI:
|
||||
_print_midi_info(input_event)
|
||||
|
||||
func _print_midi_info(midi_event: InputEventMIDI):
|
||||
print(midi_event)
|
||||
print("Channel " + str(midi_event.channel))
|
||||
print("Message " + str(midi_event.message))
|
||||
print("Pitch " + str(midi_event.pitch))
|
||||
print("Velocity " + str(midi_event.velocity))
|
||||
print("Instrument " + str(midi_event.instrument))
|
||||
print("Pressure " + str(midi_event.pressure))
|
||||
print("Controller number: " + str(midi_event.controller_number))
|
||||
print("Controller value: " + str(midi_event.controller_value))
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue