Setup MPTK V2 – Add SoundFonts

MPTK is based on SoundFont, a kind of library which contains hundred sounds of instruments as piano, sax, drum, … with the description (quite complex!) of how to use each sounds for each keys and velocity.

SoundFont(R) is a registered trademark of E-mu Systems, Inc.

The FREE version of Midi Player Tool Kit use the SoundFont GeneralUser_GS_SoftSynth_v144 from Christian Collins site here.

It’s a SoundFont with a very good balancing between size and quality.

Thousands SoundFonts are available on the web, often for free.

The PRO version is able to use others SoundFonts and optimize the size of sounds in your application:

  • Keep only banks of interest for your application.
  • Analyse your Midi files to keep only patchs necessary.

So, you keep a low volume of files for your application or game.

Find and download interesting SounfFonts here:

Tips: try General Midi SoundFont to get a large variety of instruments and a compatibility with Midi norm.

Add a new SoundFont to MPTK [Pro]

  • Download SoundFont on your computer, see above.
  • Go to the menu Unity menu MPTK  “SoundFont Setup”
  • This popup windows is displayed  (empty if no SoundFont already exists):

Panel “SoundFont available”

This panel manages your list of SoundFont available for your project: Add, remove, select. Some information are displayed in the list: count of patches, count of waves, total size.

  • Button Add SoundFont: choose a SoundFont (filename of type .sf2) on your computer and load it in Midi Player Tool Kit.
  • Button Remove: delete the SoundFont and all sounds associated to it definitevely.
  • Button Default / Select: select the default SoundFont to use when playing Midi files. Only one SoundFont can be selected at the same time. But it’s possible to change the default SoundFont when running. See API documentation.

Panel “Banks available

A SoundFont is composed with banks, each bank contains a set of patches (or preset which is a synonym), each patch can used one or more waves.

Only two banks can be enables at the same time: for the Instrument and for the Drum Kit. But you can change default when running with the MPTK API.

You can select the banks to used in the top right sub windows:

  • Checkbox Keep: Choose the banks to keep or remove if your need is to lower the volume of data. Banks and relevant presets and waves will be stripped.
  • Button Instrument: Choose your default bank for Instrument as Piano, Sax, Organ, Guitar. Often the first bank contains a well selected variety of instruments.
  • Button Drum: Choose your default bank for Drum Kit sound. Often the last bank.

Panel “Optimize”

Next you have the choice : optimize your patches list depending on the Midi files defined in MPTK or get all patches and waves available.

  • Button Optimize from Midi file list: each Midi Files (here, how to add Midi files in MPTK: Midi File Setup) are analyzed to detect patches and waves used. Patches and waves not used are stripped from the SoundFont to reduce the size of your project.
  • Button Extract all Patchs & Waves: keep all patches and wave from the selected banks.

The sub panel Logs displays some information about the extraction. You can save logs, open folder with the logs, clear the logs.

Tips:

  • Free Version is published with the SoundFont “GeneralUser_GS_SoftSynth_v144”. It’s a free sound font with a good balancing between size and quality but you can’t change it. To download the same SoundFont as for the free version, you could visit the excellent Christian Collins’s site.
    • Christian Collins site here 
    • and search for GeneralUser GS SoftSynth version 1.44.
  • Demo video here
  • Don’t forget to ask authorization for copyrighted resources!