Git Product home page Git Product logo

Comments (11)

Dimavj avatar Dimavj commented on August 15, 2024

Hi Again...
I just "SOLVED" it by listening 5 times in the same update function for the notes...
I think is not the best solution but, it goes acceptable for me.
thanks.

from midijack.

keijiro avatar keijiro commented on August 15, 2024

Did you close Unity Editor before running the build? Unity Editor should be closed before running the standalone build because MIDI devices are exclusively retained by a single application on some systems.

from midijack.

Dimavj avatar Dimavj commented on August 15, 2024

Hi,
Yes I've closed the editor sure...
Thanks

from midijack.

keijiro avatar keijiro commented on August 15, 2024

Thanks for confirming.

Although I've never experienced such a situation, it could happen when the frame rate is quite low. You can use delegates to avoid this kind of message-loss issue. See the example for further details.

https://github.com/keijiro/MidiJack/blob/master/Assets/Example%20Delegate/DelegateTester.cs

from midijack.

Dimavj avatar Dimavj commented on August 15, 2024

Yes, I've beeing re-testing it right now, and it occurs again.
Thank you very much for the answer!
Well, I'm not famirliarized with delegates, I'll look for some tut or explaination to learn how to use it, so, have you some suggestion?
Cheers.
Albert

from midijack.

keijiro avatar keijiro commented on August 15, 2024

https://unity3d.com/learn/tutorials/topics/scripting/delegates

from midijack.

Dimavj avatar Dimavj commented on August 15, 2024

Hi Keijiro,
Finally I've learned how to use your delegate's functions from your example.
It's all going on
Thank you a lot for your work on MidiJack, is a useful, simple, and complete tool
I'm closing the thread,
Cheers.
Albert.

from midijack.

keijiro avatar keijiro commented on August 15, 2024

The original problem hasn't been solved yet. Please keep this ticket opened.

from midijack.

TxTx123 avatar TxTx123 commented on August 15, 2024

Hi Keijiro,
This script sometimes misses MIDI input and can not be controlled reliably in the update function.
Although using delegate will work good.

Is there a technique to reliably receive MIDI signals with GetKeyDown Function?
Best regards,

from midijack.

Eumi avatar Eumi commented on August 15, 2024

For me the GetKeyDown function also misses a lot of notes and i am a total beginner in C# idk how to use delegate =,o its all too complicated =p

from midijack.

tomkail avatar tomkail commented on August 15, 2024

I'm also finding that down notes are occasionally skipped. Seems they aren't registered during DequeueIncomingData. Could you share how this data stream works? Might higher frame rates help?

from midijack.

Related Issues (20)

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.