mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
70c588a100
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
97 lines
3.9 KiB
Ruby
97 lines
3.9 KiB
Ruby
eval$C=%q(at_exit{
|
|
open("/dev/dsp","wb"){|g|h=[0]*80
|
|
$><<"\s"*18+"eval$C=%q(#$C);S=%:"
|
|
(S<<m=58).lines{|l|s=[128]*n=20E2
|
|
t=0; h.map!{|v|d=?!==l[
|
|
t]?1 :(l[
|
|
t]== ?#)?
|
|
0*v= 6:03
|
|
(v<1 ?[]:
|
|
0..n -1).
|
|
each {|z|
|
|
s[z] +=2*
|
|
M.sin(($*[0] ||1)
|
|
.to_f*M.sin(y= 40*(z+m)*2**
|
|
(t/12E0)/463)+ y)*(v-z*d/n)};
|
|
t+=1;v-d};m+= n;g.flush<<(s.
|
|
pack"C*"); puts(l)}}};M=
|
|
Math);S=%:
|
|
|
|
Jesu, Joy of Man's Desiring
|
|
Johann Sebastian Bach
|
|
|
|
#
|
|
| #
|
|
| #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | #
|
|
# # # #
|
|
| | | #
|
|
| #| #
|
|
# # | #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | # |
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | #
|
|
# # # #
|
|
| | # |
|
|
| # # |
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| | # #
|
|
# # # #
|
|
| | | #
|
|
| # #
|
|
# # #
|
|
| | | #
|
|
| # | #
|
|
# # # #
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | |
|
|
| | | :
|