Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Midi Player Tool Kit V2 Available !

Discussion in 'Made With Unity' started by BachmannT, Apr 14, 2018.

  1. maidilakbar

    maidilakbar

    Joined:
    Mar 9, 2015
    Posts:
    2
    Hello BachmannT,

    Thanks for your libs. so much easy to understand and well documented.
    But, i still have problem with the libs sound. There are no balance with distortion guitar sound and the drum sound.
    The drum sound too soft compared with guitar sound, is it because of GM Bank sound.?

    Can i set the GM Bank to original MIDI sound.?

    Best Regards,
    Aidil
     
  2. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hello Aidil
    Thank for your encouragement, I'm happy that you like this product.
    For your question, yes the sound quality is depending on the Soundfont selected. There is a lot of Soundfont with differents goals..
    But it's possible also to adapt the volume of the midi on each notes. You need a Midi editor and a lot of patience !

    Best Regards
    Thierry
     
  3. maidilakbar

    maidilakbar

    Joined:
    Mar 9, 2015
    Posts:
    2
    Hello BachmannT,

    Thanks for the fast response.
    I tried playing a music midi file and I thought it got the wrong tempo when playing compared to using the mac midi player (GarageBand).
    Is my file not support for this libs.?

    (I attached the midi file to test)

    Best Regards,
    Aidil
     

    Attached Files:

  4. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Strange, on my PC, the speed is the same that others sequencers.
    What version of MPTK are you using ?
    Have you check the parameters "Speed" in the inspector ? a normal value must be 1.
     
    Last edited: Mar 27, 2019
  5. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hello
    I have checked with a test midi file on MacOS: the speed is ok. Please, try on your desktop with the midi file Test 4-4. The length must be 6 seconds.
    Best Regards
    Thierry MacMidiPlayerTest.png
     

    Attached Files:

  6. PsiloCybian

    PsiloCybian

    Joined:
    May 14, 2015
    Posts:
    4
    Does it support sf3 ?
     
  7. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hello
    No it doesn't. But don't be worry, Unity transform wave to vorbis (compressed wave). See snapshot bellow.
    Also, with the Pro version, MPTK analyses your Midi files and removes waves not used.
    BR.
    upload_2019-4-6_12-23-28.png
     
    Last edited: Apr 6, 2019
  8. kylerobertbradley

    kylerobertbradley

    Joined:
    Aug 5, 2018
    Posts:
    1
    Hello, I have been looking at your tool kit for a few months now and I think it is right for me, but I am not sure.

    Is there a seperate email I can send more information about my application, so that you can help me gage if what I need is in range of what this asset could do?

    Thank you so much!

    Kyle
     
  9. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hello Kyle
    I answered to your mail. yes, send me more information, i will see what it's possible.
     
  10. AStoryBoardZ

    AStoryBoardZ

    Joined:
    Feb 10, 2016
    Posts:
    2
    Hi! Could you please tell will it work with iOS? I found post on your blog that it supports Android but no word about iOS.
     
  11. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hello
    MPTK support Android but partially. See here
    I have never checked with iOS, only with MacOS. Some users say me that it's ok but without a full check ... I encourage you to verify with the free version and I will offer you a Pro version for a full check on iOS ;-)
    Best Regards
    Thierry
     
    Last edited: Apr 9, 2019
  12. robinspots

    robinspots

    Joined:
    May 10, 2018
    Posts:
    5
    Hi,

    Firstly, great tool, thanks for your hard work!

    I can't seem to get the noteOff events to fire. I've set the MPTK_KeepNoteOff value to 'true' and have turned 'Log Midi events' on but I'm not seeing any noteOff events. Am I missing something?

    Ultimately, I need to add a noteoff subscriber. I've successfully done this using
    Code (CSharp):
    1. midiExternalPlayer.OnEventNotesMidi.AddListener(NotesToPlay);
    for noteOn events, but again, this doesn't seem to work for noteOff.

    Any tips would be very much appreciated. Thanks!
     
  13. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hi robinspots
    Thank for your encouragement !
    You are right, there is a bug. I search for a workaround and take you inform.
    Best Regards
    Thierry

    [EDIT] I'm sorry, but there is no simple workaround. I need to publish an update. I will do that as soon as possible, but publishing a new version need serious testing phase. I hope to be ready for the next week.
    I apologize for that.
    Best Regards
    Thierry
     
    Last edited: Apr 11, 2019
  14. robinspots

    robinspots

    Joined:
    May 10, 2018
    Posts:
    5
    Bonjour Thierry,

    That's no problem. Please let me know when the update is ready.

    Merci :)
     
  15. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Version 2.03 has been sent to the store. I hope that will be available for the beginning of the week. Je vois que mon origine géographique a été démasqué ;-)
     
  16. robinspots

    robinspots

    Joined:
    May 10, 2018
    Posts:
    5
    The new update seems to be working great. Thanks Thierry!
     
    BachmannT likes this.
  17. Mihaylevskiy

    Mihaylevskiy

    Joined:
    Aug 30, 2017
    Posts:
    4
    Hello. I want to use this plugin to play on WEB, but in the Unity Editor (or Windows app.) and WEBGL midi sounds different. How to fix it? Thanks.
     
  18. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Hello
    MPTK doesn't support playing sound with a good quality on WebGL. See here.
    The reason is the WebGL doesn't support CoRoutine, I'm sorry for that.
    It's possible to load a Midi file to read and process Midi Events.
    Best Regards
    Thierry
     
  19. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Good to know, and thank for your test.
     
  20. Mihaylevskiy

    Mihaylevskiy

    Joined:
    Aug 30, 2017
    Posts:
    4
    Unity 2018.3 support CoRoutine and MIDI file is played.
    for example: https://qa3.elpcorp.com/test_web_midi/test_pro/
    (using MIDI lib.), but not played well.
    Original midi file in attach.
     

    Attached Files:

  21. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    My explanations was a little short: here some info from Unity
    You are right, CoRoutine run correctly with WebGL. The issue is Threading. The impact on sound is much more on how a sound loop on a wave. The wave loop with WebGL (and also with Android) is done on the full wave, not on a sustain section:
    When a piano key is hit, the wave is playing from start: first the attack+decay phase (a very short phase), then the wave is playing the sustain phase until the key is released, then wave is playing the release phase (a short phase) and the sound is stopped.
    With WebGL and Android, the wave is plays from start to end in a loop until the key is released: attack/decay/sustain/release. Here information how a synthesizer runs (in particular with envelope).

    I have the idea for a future version of MPTK to cut each waves in each steps; then let MPTK runs each sub wave according the current phase. It's a lot of work and ... with no guarantee to get a good sound (i'm afraid to have some glitch sound between each phase ...)
     
    Last edited: Apr 17, 2019
  22. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    72
    Thank for your comment on the pro store. It help me to continue trying doing the best !