Code Monkey home page Code Monkey logo

unity-midi-plugin-supports's People

Contributors

kshoji avatar

Stargazers

 avatar  avatar

Watchers

 avatar

unity-midi-plugin-supports's Issues

Sample scene stops working. (Unity 2021.3.15f1 Personal; M1 Mac; macOS 12.6)

I'm having an issue where the sample scene stops working after a couple of plays. It seems to stop receiving events, because devices are no longer listed, and MIDI keyboard key presses stop showing up. I haven't tried yet with a scene other than the sample scene, but I assume that receiving MIDI events would be broken regardless of the scene used.

(EDIT: I realized that this probably isn't an issue for production applications, so I can work around this issue during development just by periodically restarting the Unity editor.)

To reproduce:

  1. Connect a MIDI keyboard.
  2. Create a Unity project and import the plugin.
  3. Run MidiSampleScene. (You should see your MIDI keyboard listed, and pressing keys should show midi events in the Receive MIDI window.
  4. Stop and start the scene a few times. After a few stops and starts, the scene no longer works correctly.

Restarting Unity does reset the scene so it works again, but it will stop working again after a bit.

First run:

Screen Shot 2023-01-04 at 12 09 43 AM

Fourth run:

Screen Shot 2023-01-04 at 12 10 55 AM

Can you provide a boilerplate file that works?

After following your implementation guide things are unclear and furthermore there is a lot more in the IMidiAllEventsHandler interface that needs to be implemented.

Can you provide a barebones template of a class that just works?

Thanks

Byte is obsolete on android

I'm getting a lot of warnings about bytes being obsolete and that sbytes should be used instead. Anyone else encountered this? Bytes are being converted to sbyte automatically and causing problems.
Capture

Midi keyboard size

Hi there

Is there a way to get the keyboard size?

Not sure if this is even possible.

It looks like all midi keyboards start with C but it'll be nice to know how many keys are available in the keyboard.

Thanks

Any way of negotiating MTU?

Hi, on android the MTU is limited to 20/23 bytes.
Would it be possible to add a way of requesting a higher value via the plugin?

simple playback

Hello, I have a need to just playback a midi file, there are a lot of options in the package that I don't need at the moment, can you give me just a couple of lines of code to playback a midi file that is in unity (not from a url)

USB Midi support for iOS

Hi! Any plans to add USB Midi support for iOS? I’m guessing it would be fairly easy since you’ve already hooked into the iOS Core Midi to support BLE? Or is there some other reason for not supporting usb midi on iOS?

Can't get it to work on iOS

Hi, we can get the plugin to work on Android but when building for iOS it doesn't work. The Midi device is detected and attached as both inputand output device, but no messages we send seem to reach the device on the other end. It works fine when we build for Android using the same computer and Unity project, but not when switching to iOS.

No error messages when using USB, but when using BLE we get this message in the Xcode console [CoreBluetooth] XPC connection invalid after the app says it has found the device and attached to it. Not sure if it's relevant to this issue or not.

I have also tried listening to the messages sent from the app on the computer using Midi Monitor, attaching the app to it as an output device and sending messages, but nothing gets sent there either so I'm pretty sure it's not the hardware device that's the problem but rather the plugin doesn't seem to send the messages on these platforms.

Any idea what could be going wrong or how I could troubleshoot what's actually happening within the plugin code? It's compiled so I can't see what happens beyoud calling the SendMidiData() method which then sends the message in native compiled plugin code.

I'm using Xcode 14.1, Unity 2021.3.16f1, Plugin version 1.3.0, iOS 16.2

Issue connecting to Quest 2 via cable

Hey, I'm having an issue with connecting the midi feed to my quest 2 via cable. I am using a USB-B to USB-C cable to directly connect from a YAMAHA Dgx-640 piano. I get no pop-up or event that the midi device was attached.
I tried connecting the piano to my phone the same way to test if the cable or piano are broken, but it works perfectly then.
I am also able to connect with no issues via the Yamaha UD-BT01 Bluetooth Midi adapter.

Perhaps you have some suggestions? Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.