*
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
/Src/.vs
|
||||||
|
/Src/bin
|
||||||
|
/Src/obj
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[submodule "Dependencies/RushMidi.Library"]
|
||||||
|
path = Dependencies/RushMidi.Library
|
||||||
|
url = https://vcs.l-proger.ru/l-proger/RushMidi.Library.git
|
||||||
|
branch = main
|
||||||
+1
Submodule Dependencies/RushMidi.Library added at f2b9d7c0db
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Dependencies\RushMidiLibrary\RushMidiLibrary.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.8.34309.116
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RushMidiLibrarySandboxApplication", "RushMidiLibrarySandboxApplication.csproj", "{F13670FC-42F1-4570-93C6-C949E930A9CD}"
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RushMidiLibrary", "..\Dependencies\RushMidiLibrary\RushMidiLibrary.csproj", "{167E149C-FD14-4930-812B-0C9221F66A53}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{F13670FC-42F1-4570-93C6-C949E930A9CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F13670FC-42F1-4570-93C6-C949E930A9CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F13670FC-42F1-4570-93C6-C949E930A9CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{F13670FC-42F1-4570-93C6-C949E930A9CD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{167E149C-FD14-4930-812B-0C9221F66A53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{167E149C-FD14-4930-812B-0C9221F66A53}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{167E149C-FD14-4930-812B-0C9221F66A53}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{167E149C-FD14-4930-812B-0C9221F66A53}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {241B4F90-CDD6-4194-951B-6FFE1C054E92}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
Reference in New Issue
Block a user