Difference between revisions of "Midi"

From VideoLAN Wiki
Jump to navigation Jump to search
(fix WIkipedia link, better MIDI explanation, link SoundFont, separate Linux section)
Line 1: Line 1:
{{wikipedia|Musical_Instrument_Digital_Interface#MIDI_file_formats|Midi files}}
+
{{wikipedia|Musical_Instrument_Digital_Interface#Standard MIDI files|Midi files}}
 
{{Module|name=fluidsynth|type=Codec|description=SMF files playback through fluidsynth library|first_version=0.9.0}}
 
{{Module|name=fluidsynth|type=Codec|description=SMF files playback through fluidsynth library|first_version=0.9.0}}
  
Standard MIDI File (SMF) are instrumental musical files carrying sounds events that can be played back with a sound font.
+
Standard MIDI Files (SMF) contain sounds events that indicate the notes and instruments in a musical performance, but do not include the digital waveform of the audio. To play a MIDI file, software has to synthesize the music, which usually requires reading instrument samples from a "sound font" file.
 +
They usually have the extension <tt>.mid</tt> or <tt>.midi</tt>.
  
 
== Play .midi files in VLC ==
 
== Play .midi files in VLC ==
Line 8: Line 9:
  
 
=== SoundFonts file ===
 
=== SoundFonts file ===
To playback those .midi files, you need a SoundFont file: .sf2.
+
To playback .midi files, you need a [[wikipedia:SoundFont|SoundFont]] file (with extension <tt>.sf2</tt>).
 
 
 
You can download them from either of these two places:
 
You can download them from either of these two places:
  
Line 20: Line 20:
 
You select the .sf2 file with the preferences select button. Due to a bug in the software it may ask if you want to replace the file you selected. Choose "Yes" to continue (your file remains intact).
 
You select the .sf2 file with the preferences select button. Due to a bug in the software it may ask if you want to replace the file you selected. Choose "Yes" to continue (your file remains intact).
  
If the '''FluidSynth''' codec is not shown in the preferences, you have to install it (e.g. on [[Ubuntu]] 10.10 it is included in the '''vlc-plugin-fluidsynth''' package, while the '''fluid-soundfont-gs''' and '''fluid-soundfont-gm''' packages install some sound fonts in <code>/usr/share/sounds/sf2</code>).
+
=== Linux ===
 +
If the '''FluidSynth''' codec is not shown in VLC's preferences, you have to install it as well as sound fonts.
 +
E.g. on [[Ubuntu]] 13.04 it is in the '''vlc-plugin-fluidsynth''' package, while the '''fluid-soundfont-gs''' and '''fluid-soundfont-gm''' packages install some sound fonts in <code>/usr/share/sounds/sf2</code>.

Revision as of 03:55, 13 August 2013

Module: fluidsynth
Type Codec
First VLC version 0.9.0
Last VLC version -
Operating system(s) all
Description SMF files playback through fluidsynth library
Shortcut(s) -

Standard MIDI Files (SMF) contain sounds events that indicate the notes and instruments in a musical performance, but do not include the digital waveform of the audio. To play a MIDI file, software has to synthesize the music, which usually requires reading instrument samples from a "sound font" file. They usually have the extension .mid or .midi.

Play .midi files in VLC

VLC media player can play MIDI since 0.9.0 on most platforms. On Windows, you need VLC media player 1.1.0.

SoundFonts file

To playback .midi files, you need a SoundFont file (with extension .sf2). You can download them from either of these two places:

Configure SoundFont in VLC

You need to open VLC's preferences. The preferences window has two display modes called Simple and All. Choose the display mode called All, then go to Codecs, Audio codecs, FluidSynth.

You select the .sf2 file with the preferences select button. Due to a bug in the software it may ask if you want to replace the file you selected. Choose "Yes" to continue (your file remains intact).

Linux

If the FluidSynth codec is not shown in VLC's preferences, you have to install it as well as sound fonts. E.g. on Ubuntu 13.04 it is in the vlc-plugin-fluidsynth package, while the fluid-soundfont-gs and fluid-soundfont-gm packages install some sound fonts in /usr/share/sounds/sf2.