MusIT

Sound Effects

Effects modules are available only with the Maestro MPTK Pro version.

There is two kinds of effects:

  • Effects defined from SoundFont and processed with fluidsynth algo,
  • Unity Effects associated to the AudioSource

Look at the inspector of the Maestro MPTK prefab (MidiFilePlayer, MidiStreamPlayer, MidiListPayer, …) to see effects parameters Synth Parameters / SoundFont Effect or Unity Effect.

By default, these effects are disabled in Maestro. To enable them, you’ll need to adjust the settings from the prefab inspector. For enhanced sound quality, it’s often beneficial to add a low-filter effect!

SoundFont effects

A SoundFont contains parameters to apply three kinds of effects: low-pass filter, reverb, chorus. These parameters can be specifics for each instruments and even each notes. See below the low-pass frequency set for Piano. Viena is a perfect tool to edit SoundFont.

Screen shot from Viena

Maestro MPTK effects are based on FluidSynth effects modules. Furthermore, to get more liberty from SoundFont, Maestro MPTK can increase or decrease the impact of effects (from the inspector or by script).

To summarize:

  • Effects are applied individually to each voices in a note, yet they are statically defined within the SoundFont.
  • Maestro parameters can be adjusted to increase or decrease the default values set in the SoundFont.
  • These adjustments will be applied across the entire prefab, but the effect will depend on the initial settings defined in the SoundFont Preset.
  • Please note that these effects require additional CPU resources. See impact of effect on DSP load here.
  • See performance information here

Unity Effects

Obviously, Unity effects are also available, but unlike SoundFont effects, they applied to the whole player. On the other hand, the Unity effects parameters are rich!

Reverb and Chorus effects can be applied directly in the prefab:

Furthermore, you can add any Audio Filter you want to the AudoSource in the prefab:

Set effect by script

All effects parameters available from Inspector can be set also by script. See detail in the the class MidiSynth documentation. See below for the SoundFont Effects:

  • bool MPTK_ApplySFFilter
  • float MPTK_SFFilterFreqOffset
  • bool MPTK_ApplySFChorus
  • float MPTK_SFChorusAmplify
  • boolMPTK_ApplySFReverb
  • float MPTK_SFReverbAmplify


Get MPTK from the Unity store

If you like Midi Player Tool Kit, please leave a review on the Asset Store. It’s very appreciated!!!

Maestro MPTK on ChatGPT!

From different MPTK documentation sources DarkSky42 has created a custom LLM based on ChatGPT. You are now able to ask all the questions you want and get a good level of response, request code example, verify your source code …

Contact

If you have questions, please don’t hesitate to contact us via the dedicated Unity forum or our Discord  channel.

Reach the Discord archive by topic.

We are always happy to discuss your projects!

Add MIDI Music With 3 Clicks for Free

Sound Spatialisation, MPTK is ready for Virtual Reality [Pro]

Sound Spatialisation, MPTK is ready for Virtual Reality [free]

Midi Synth : Real Time Voice Effect Change

Euclidean Rhythm demo

The Deezer playlist that helped me create Maestro