31 lines
533 B
C#
31 lines
533 B
C#
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;
|
|
}
|
|
} |