Search Unity

New V2.6. Better sound, better accuracy, more demos ...

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

  1. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    Hi
    I need some answer to check more in detail.
    What soundfont are you using ? Is it the same soundfont in FL Studio ?
    And the last: which wave and patch are you testing ? I Can't see in the video.
    BR
    Thierry
     
  2. BasicallyGames

    BasicallyGames

    Joined:
    Aug 31, 2018
    Posts:
    13
    The soundfont I'm currently testing with is called GMGSx. It is the same soundfont I loaded into the FL Studio soundfont player.

    I'm not sure exactly what wave I'm using, but in FL studio if you load the soundfont and select the standard drum kit (Patch 129), you can find the sounds with F#6 and G6 notes.
     
  3. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    Hi
    It's the sample 000232. BElow a screenshot from Viena
    upload_2019-11-20_7-30-51.png

    and here from MPTK:
    upload_2019-11-20_7-32-15.png

    Same rate 22050.

    The issue is that you are comparing a sample playing by Unity with a Note playing with a sequencer.
    Check this with MPTK: load the demo MidiStreamPlayer (it's a very simple sequencer), and set parameters as defined below. You will get something very close to FL Studio.

    upload_2019-11-20_7-35-13.png

    BR
    Thierry
     
  4. BasicallyGames

    BasicallyGames

    Joined:
    Aug 31, 2018
    Posts:
    13
    Thanks for the explanation, however, playing it with the sequencer still sounds significantly lower in quality than when I used the soundfont in FL Studio.
     
  5. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    each sequencer sounds different, the algo are complex. Viena, Muse Score, .... all sounds different. Perhaps, the difference, I have not yet implemented effect with MPTK ...
     
  6. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    I received a notifcation that you have posted a message but I can't get it ... strange.
    For your error: delete the previous version of MPTK in your project before importing the new one.
    BR
    Thierry
     
  7. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    22
    Thanks for your reply.

    As soon as i posted the message, i realizedwhat was causing the problem. Thats why i deleted it. ;)
     
  8. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    I will update the readme. it's not so obvious !
     
  9. athgen113

    athgen113

    Joined:
    May 25, 2018
    Posts:
    40
    you are pro
     
  10. turboturboturbo

    turboturboturbo

    Joined:
    Dec 2, 2018
    Posts:
    19
    Hi,

    Before I purchase the PRO version I have some questions:

    1. Can I send midi events to the audio player?

    I am using my own midi-player.
    Does your audio player have an API so I can send it midi events?
    I want to send the following events:

    Code (CSharp):
    1. NoteOn(int velocity, int noteNumber)
    2. NoteOff(int noteNumber)
    3. ControlChange(int value)     // (sustain pedal)
    2. Is this a wrapper of FluidSynth?

    I do not want to use FluidSynth as I do not want to deal with Legal issues.
    Is this library 100% written by you?

    3. Is there any input delay?

    I tried using RTMidi on Unity, but get ~100ms delay ( when I try with a usb piano).
    Does this library have significant latency on the midi input port?
     
  11. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    Hello
    Thank for your interest for MPTK.
    Can I send midi events to the audio player? No, only midi input areprocessed, you can't send midi events from MPTK to an external midi device.
    Is this a wrapper of FluidSynth? Yes, but there is no legal issue: GNU LESSER GENERAL PUBLIC LICENSE
    Is there any input delay? Hard to measure, but I have the feeling that there is a delay. Creating virtal instrument is not a use case for MPTK, it's my feeling.

    So, don't buy MPTK !

    Best regards
    Thierry
     
  12. turboturboturbo

    turboturboturbo

    Joined:
    Dec 2, 2018
    Posts:
    19
    No, I meant to ask:

    can I send midi events to MPTK?

    midiEvent ----> MPTK api ----> play audio


    I ask this because I already built a midi player, but I need to output audio. So I want to send the midi events, individually, from my midi player to MPTK so it can play the soundfonts.
     
    Last edited: Dec 14, 2019 at 7:03 AM
  13. BachmannT

    BachmannT

    Joined:
    Nov 20, 2016
    Posts:
    94
    Yes ! you can. This is one of the major feature of MPTK.
    see API example:
    Code (CSharp):
    1. midiStreamPlayer.MPTK_PlayEvent(new MPTKEvent() { Command = MPTKCommand.ControlChange, Controller = MPTKController.Pan, Value = PanChange, Channel = StreamChannel });
    2.  
    3. midiStreamPlayer.MPTK_PlayEvent(new MPTKEvent() { Command = MPTKCommand.PatchChange, Value = index, Channel = StreamChannel, });
    4.  
    5. midiStreamPlayer.MPTK_PlayEvent(
    6.                             new MPTKEvent()
    7.                             {
    8.                                 Command = MPTKCommand.NoteOn,
    9.                                 Value = CurrentNote,
    10.                                 Channel = StreamChannel,
    11.                                 Duration = duration,
    12.                                 Velocity = Velocity,
    13.                             });
    And these videos. All are using the prefab MidiStreamPlayer able to play midi events from an algo.




    Have Fun!
     
    Last edited: Dec 14, 2019 at 10:54 AM