From 7c9b158a15ece1903dbce920c31304d84b70c3b9 Mon Sep 17 00:00:00 2001 From: l-proger Date: Tue, 13 May 2025 00:47:28 +0300 Subject: [PATCH] * --- .gitignore | 3 ++ .gitmodules | 4 +++ Dependencies/RushMidi.Library | 1 + Src/Program.cs | 31 ++++++++++++++++++++ Src/RushMidiLibrarySandboxApplication.csproj | 12 ++++++++ Src/RushMidiLibrarySandboxApplication.sln | 31 ++++++++++++++++++++ 6 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 160000 Dependencies/RushMidi.Library create mode 100644 Src/Program.cs create mode 100644 Src/RushMidiLibrarySandboxApplication.csproj create mode 100644 Src/RushMidiLibrarySandboxApplication.sln diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe2f9dc --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/Src/.vs +/Src/bin +/Src/obj diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..31e5a6f --- /dev/null +++ b/.gitmodules @@ -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 diff --git a/Dependencies/RushMidi.Library b/Dependencies/RushMidi.Library new file mode 160000 index 0000000..f2b9d7c --- /dev/null +++ b/Dependencies/RushMidi.Library @@ -0,0 +1 @@ +Subproject commit f2b9d7c0db7dd666a36ce7d212109462d720b559 diff --git a/Src/Program.cs b/Src/Program.cs new file mode 100644 index 0000000..96fbf7d --- /dev/null +++ b/Src/Program.cs @@ -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; + } +} \ No newline at end of file diff --git a/Src/RushMidiLibrarySandboxApplication.csproj b/Src/RushMidiLibrarySandboxApplication.csproj new file mode 100644 index 0000000..f1a39af --- /dev/null +++ b/Src/RushMidiLibrarySandboxApplication.csproj @@ -0,0 +1,12 @@ + + + + Exe + net6.0 + + + + + + + diff --git a/Src/RushMidiLibrarySandboxApplication.sln b/Src/RushMidiLibrarySandboxApplication.sln new file mode 100644 index 0000000..139a8f4 --- /dev/null +++ b/Src/RushMidiLibrarySandboxApplication.sln @@ -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