domingo, 30 de abril de 2017

Reproducir archivos MIDI en Linux

1. Entrar a la terminal para instalar lo siguiente:

sudo apt-get install freepats timidity timidity-interfaces-extra

Debes darle tu clave y Enter luego teclear "Y" para instalar y Enter. Deberías ver algo como esto:

[sudo] password for iis:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 libsword9
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libtcl8.5 libtk8.5 tcl8.5 tk8.5
Suggested packages:
tcl-tclreadline pmidi fluid-soundfont-gm fluid-soundfont-gs
Recommended packages:
timidity-daemon
The following NEW packages will be installed:
freepats libtcl8.5 libtk8.5 tcl8.5 timidity timidity-interfaces-extra tk8.5
0 upgraded, 7 newly installed, 0 to remove and 121 not upgraded.
Need to get 31,1 MB of archives.
After this operation, 41,4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.liquidweb.com/ubuntu/ trusty/main libtcl8.5 amd64 8.5.15-2ubuntu1 [684 kB]
Get:2 http://mirrors.liquidweb.com/ubuntu/ trusty/main libtk8.5 amd64 8.5.15-2ubuntu3 [641 kB]
Get:3 http://mirrors.liquidweb.com/ubuntu/ trusty/universe freepats all 20060219-1 [29,0 MB]
Get:4 http://mirrors.liquidweb.com/ubuntu/ trusty/main tcl8.5 amd64 8.5.15-2ubuntu1 [13,9 kB]
Get:5 http://mirrors.liquidweb.com/ubuntu/ trusty/universe timidity amd64 2.13.2-40.2 [658 kB]
Get:6 http://mirrors.liquidweb.com/ubuntu/ trusty/main tk8.5 amd64 8.5.15-2ubuntu3 [12,0 kB]
Get:7 http://mirrors.liquidweb.com/ubuntu/ trusty/universe timidity-interfaces-extra amd64 2.13.2-40.2 [88,2 kB]
Fetched 31,1 MB in 28s (1.095 kB/s) Selecting previously unselected package libtcl8.5:amd64.
(Reading database ... 177113 files and directories currently installed.)
Preparing to unpack .../libtcl8.5_8.5.15-2ubuntu1_amd64.deb ...
Unpacking libtcl8.5:amd64 (8.5.15-2ubuntu1) ...
Selecting previously unselected package libtk8.5:amd64.
Preparing to unpack .../libtk8.5_8.5.15-2ubuntu3_amd64.deb ...
Unpacking libtk8.5:amd64 (8.5.15-2ubuntu3) ...
Selecting previously unselected package freepats.
Preparing to unpack .../freepats_20060219-1_all.deb ...
Unpacking freepats (20060219-1) ...
Selecting previously unselected package tcl8.5.
Preparing to unpack .../tcl8.5_8.5.15-2ubuntu1_amd64.deb ...
Unpacking tcl8.5 (8.5.15-2ubuntu1) ...
Selecting previously unselected package timidity.
Preparing to unpack .../timidity_2.13.2-40.2_amd64.deb ...
Unpacking timidity (2.13.2-40.2) ...
Selecting previously unselected package tk8.5.
Preparing to unpack .../tk8.5_8.5.15-2ubuntu3_amd64.deb ...
Unpacking tk8.5 (8.5.15-2ubuntu3) ...
Selecting previously unselected package timidity-interfaces-extra.
Preparing to unpack .../timidity-interfaces-extra_2.13.2-40.2_amd64.deb ...
Unpacking timidity-interfaces-extra (2.13.2-40.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up libtcl8.5:amd64 (8.5.15-2ubuntu1) ...
Setting up libtk8.5:amd64 (8.5.15-2ubuntu3) ...
Setting up freepats (20060219-1) ...
Setting up tcl8.5 (8.5.15-2ubuntu1) ...
Setting up timidity (2.13.2-40.2) ...
Setting up tk8.5 (8.5.15-2ubuntu3) ...
Setting up timidity-interfaces-extra (2.13.2-40.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.11) ...
Processing triggers for menu (2.1.46ubuntu1) ...

Si todo anda bien, debes tener listo el programa. Solo hay que iniciar el servidor.

2. Inicializa timidity en la terminal: tecleando:

timidity -iA

Si te aparece algo como esto:

Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3
Ya tienes cargado Timidity y puedes reproducir tus archivos .mid desde la consola.

3. Abre una nueva ventana de terminal donde tengas los archivos .mid y teclea:

timidity bartimeus

o si quieres una interfaz gráfica teclea:

timidity -ig

Referencias: https://sfxpt.wordpress.com/2015/02/02/how-to-play-midi-files-under-ubuntu-linux/

No hay comentarios:

Publicar un comentario