Tutoriales/MIDI en Linux

    From KDE UserBase Wiki
    Revision as of 15:48, 15 September 2010 by Plcl (talk | contribs) (Created page with '* Interfaz MIDI * Driver ALSA para el interfaz MIDI * Cables MIDI')

    Information

    MIDI es un conjunto de tecnologías relacionadas con la descripción y transmisión de datos musicales, pero no es un formato de audio digital. Para utilizar la mayoría de software MIDI en Linux, como en cualquier otro sistema operativo, se requiere disponer de un sintetizador MIDI.


    Un sintetizador MIDI convierte los eventos MIDI en sonido digital. El sintetizador puede ser un dispositivo hardware externo, o estar incorporado en una tarjeta de sonido. También puede ser un sintetizador software, es decir: un programa.

    Existen ficheros MIDI con la extensión .MID, que contienen música en un formato de datos MIDI. Una forma de explicarlo es en términos gastronómicos. Oir música en un Compact Disc es similar a comer en un restaurante, y MP3 sería comparable al fast-food. Por otro lado, un fichero MIDI es como una receta de cocina: tienes que conseguir los ingredientes apropiados y utilizar utensilios de cocina. En vez de horno, ollas y sartenes utilizarás sintetizadores MIDI. Como buen geek y usuario de Linux, tendrás ganas de cambiar la receta y los ingredientes. Pues hazlo! en KMid puedes abrir la ventana "canales", y cambiar el piano por una guitarra o lo que prefieras.

    Sintetizadores MIDI externos

    Son instrumentos musicales que pueden ser conectados con el ordenador, o con otros instrumentos, mediante cables MIDI. Para ello, el ordenador debe disponer de un interfaz MIDI. Hay tarjetas de sonido con interfaces MIDI, y también existen adaptadores USB soportados por ALSA mediante el módulo correspondiente del kernel. Incluso hay instrumentos MIDI que se conectan al ordenador directamente por USB. En cualquier caso, se debe comprobar que el modelo de interfaz MIDI está soportado por ALSA en la dirección siguiente: http://www.alsa-project.org/main/index.php/Matrix:Main

    En resumen, con esta opción necesitarás:

    • Interfaz MIDI
    • Driver ALSA para el interfaz MIDI
    • Cables MIDI

    Hardware Synthesizer Sound Cards

    Some sound cards, such as the ones manufactured by Creative Labs (SB AWE, Sound Blaster Live! and Audigy) have a MIDI synthesizer using wave-table sound samples as a synthesis method. These samples are being loaded into the sound card before using MIDI software, preferably at system boot. If you own one of these cards:

    • In addition to ALSA, also install the software package awesfx which includes the sound samples loader, ALSA scripts and udev rules to automatically load on system boot.
    • Install SoundFont files provided by the manufacturer or other alternative SF2 files in /usr/share/sounds/sf2.
    • Edit the configuration file /etc/sysconfig/sound. On the value for the key SOUNDFONT_FILES, provide the name of one or several SF2 files that must be loaded on system startup. The file names and locations may vary from one distribution to another, these instructions apply to openSUSE.

    SoundFont filescan also be loaded manually. Read the manual of asfxload"for more information.

    Software Synthesizers

    The classic software synthesizer for Linux is TiMidity++, but the latest release is from 2004. It requires sound samples in GUS or SF2 format. It can be used independently as a player, but if you want to use it in conjunction with other ALSA sequencer compatible programs, you must provide the "-iA" option, for example:

    timidity -iA

    Another software synthesizer, with modern and modular design and active maintenance is FluidSynth. It uses sound samples in SF2 format, and has a friendly graphic interface called QSynth. You can also run it from the command line, for example:

    fluidsynth -a alsa /usr/share/sound/sf2/soundfont.sf2

    or:

    fluidsynth -a pulseaudio /usr/share/sound/sf2/soundfont.sf2

    The graphical configuration of QSynth is quite simple. See the following example screenshots.

    SoundFont Files

    These files represent the fish, meat and vegetables in your MIDI recipe. Here are some recommendations.