Doctor! Ahora mi PC esta cantando, ¿es hora de la Clorpromazina? D:
No conforme con que me hablara me pregunte si seria posible hacer que cantara. Recordé esos días jugando Wolfestein 3D, ellos hacían los sonidos con el speaker del PC, ¿por que yo no podía componer un tema con ese Speaker?
Buscando, buscando llegue a un paquete que se llama beep, era todo lo que necesitaba.
# apt-get install beep
Al aplicarle al man de beep veremos que es muy fácil de utilizar -f la frecuencia, -l la duración, etc.
Un buen tema es Vela, Together We Await The Storm de Human Abstract, para hacer la intro de este tema este tema hice un pequeño script en Python.
import os
#Vela, Together We Await An The Storm - The Human Abstract
intro=[(150,300), (170,300), (180,700), (170,600), (150,100), (170,100), (150,100), (120,1400), (115,1300)]
salida='beep -f70 -l1300 '
k = 1
while k <= 4:
for i,j in intro:
salida = salida + ' -n -f'+ str(i) +' -l'+ str(j)
salida = salida + ' -D300 -n -f70 -l1300 '
k = k+1
os.system(salida)
#Vela, Together We Await An The Storm - The Human Abstract
intro=[(150,300), (170,300), (180,700), (170,600), (150,100), (170,100), (150,100), (120,1400), (115,1300)]
salida='beep -f70 -l1300 '
k = 1
while k <= 4:
for i,j in intro:
salida = salida + ' -n -f'+ str(i) +' -l'+ str(j)
salida = salida + ' -D300 -n -f70 -l1300 '
k = k+1
os.system(salida)
Y después simplemente lo agregué en el startup (~/.fluxbox/startup) de Fluxbox.
$ python ~/ocio/vela.py &
Un bello vídeo demostrativo (perdonen la calidad, solo tenia a mano el celular)
Saludos!