*
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using RushMidiLibrary;
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
public static class App {
|
||||
public static int Main() {
|
||||
|
||||
|
||||
var inputDevices = MidiInputDevice.Enumerate();
|
||||
|
||||
if(inputDevices.Length != 0 ) {
|
||||
|
||||
|
||||
for(int i = 0; i < inputDevices.Length; ++i) {
|
||||
var device = inputDevices[i];
|
||||
|
||||
device.Open();
|
||||
device.Start();
|
||||
}
|
||||
|
||||
|
||||
while (true) {
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user