Hellos, I cannot seem to figure out if Midi can be utilized in Unity 3D.
Every Google search I run into seems to lead me to a 2014 thread where it was going to possibly become a thing used in Unity.
I realize that is 2014 and things may be different now.
My main question or thing Im looking to do is pretty much control Midi ports(?) via Unity and script them to buttons. An example would be making a Midi controller (keyboard or synth) and use the Android option of linking USB via a Midi protocol to well, be a midi controller
The Unity API website doesnt show or return any results when it comes to Midi in general.
Unity was all ready to add MIDI. If you notice in that thread a bunch of luddites who had no use for it in their non developing of games popped up just to nix it, the Unity tech dev disappeared and we are stuck with the results of some luddite whiners whose basic interface with Unity is to post to these forums all day.
Just like theyâre all ready to add new terrain and input systems? The thread in question was about gauging interest in it but realistically Unity takes forever to reach a release stage so even if they have a prototype itâs likely stuck in development hell with the two previously mentioned systems.
If youâre looking to use a physical midi device, you might have luck with this asset, but I havenât tried it myself.
Bought the asset for version 4.x and the dev was extremely unhelpful and there was no documentation. It is basically a wrap of the open source MIDI libraries out there.
Lol thanks guys , yes that was the thread I kinda was a bit âwowâ with looking at all the comments. Unity can be used for apps, I understand its a game engine but I guess creativity can cause something it wasnt âintendedâ for to be used in other designs.
However I was looking for the reverse of what you said Ryiah. In a nutshell (ll figure out the rest) I want to do something like this.
Only with a rearrangement of buttons,
I know this wasnt done in unity and was done in Java (according to his github), but curious no less.
Bascailly a Usb Midi controller on the Android that can send midi commands to windows where I go from there.
Overall a function or set , heck even a call method to route a clicked button into midi outputs to a PC.
I like Keijiros stuff and use their midi things all the time ( eg https://github.com/keijiro/MidiJack ) . But they are only for midi-in, and not for android, so they wont meet KliveOneâs requirements.
I used this asset and I did get it working ok but didnt like the documentation/translation issues and I totally stopped using it due to their paid upgrade strategy when it came to supporting newer unity versions etc.
However if I really needed midi out, and platform support such as Android, and quickly, then I probably wouldnt hesitate to use it again.
Well, the primary issue with Midi support is itâs dependence on hardware for actual audio rendering. The hardware you use to play Midi files directly affects how those midi files will sound. It is entirely possible to improve the audio playback of midi files by acquiring better, more expensive playback tech, like more advanced audio cards.
This specific hardware support makes the format a little less useful for a platform-agnostic game engine. For somewhat similar features, I recommend looking into Mod-Trackers, which are currently supported by Unityâs audio system. Sadly, they are a bit less useful when it comes to dynamic music. But for music composed beforehand they should provide you with a bit more of the midi-style feature set, with much smaller file sizes and the possibility for much longer tracks.
Yes what Murgilod said. Im not trying to render any audio whatsoever. I simply had the idea when I saw the app created to use a similair setup to utilize what was âheardâ in windows.
I was playing around even more and found a program that does pretty much what I was assuming. Called âHID Macrosâ This is literally what im trying to accomplish. To âhear/listenâ the Midi outputs from an android app into this program, which did hear them and I was able to (in this case) route a button push on the app to a windows key. IE: Push app button > press enter in pc.
Love the idea and wanted to try my hand at creating a mini personal ap that controlls various things I do on the pc. Say push app button > open program , etc. The ideas can go wild with it. Just wanted to tinker around
Because sadly seems doing this without (at least midi) i need a ârootedâ android and this app,program combo does it without the need to root
Unless you eventually plan to hook up an actual hardware MIDI device (eg a keyboard), youâll have a much easier time with some form of networking (eg Unityâs LLAPI). You basically would have a program running on the PC waiting for commands from another program that runs off the Android device.
Just stumbled upon this wrapper. Supports standalones (Windows, macOS, Linux) as well as mobile (Android, iOS, UWP) but they do mention that some of them (macOS, iOS, UWP) have yet to be tested. Fortunately none of those are needed.
Iâve been using midi-dot-net for Windows Midi Out until now. But with 2019.1 deprecating .Net 3.5, thatâs not an option anymore. Very much interested in alternatives.
I donât think this is how scripting api deprecation works. .Net 4x is backward compatible for the most of the part.
I doubt youâll run into issues with that.
If you do, its an open source project. Just open the lib and fix the issues that would come along.