

GitHub - laserbat/bach.sed: Bach's prelude in C major from WTC book I, w...
source link: https://github.com/laserbat/bach.sed
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Bach's prelude in C major from WTC book I, written in sed
To listen to it on Linux, run:
$ echo | ./bach.sed | aplay -r44100
Or, to play it using sox:
$ echo | ./bach.sed | play -r 44100 -e unsigned -b 8 -c 1 -t raw -
It will take a few seconds (16s on my laptop) for it to start producing sound.
Other systems
For OS X or BSD systems, you'll have to install gsed
(FreeBSD) or gnu-sed
(OS X) and edit bach.sed to start with:
#/usr/local/bin/gsed -Ef
To install required packages, use:
$ pkg install sox; pkg install gsed # (FreeBSD) $ brew install sox; brew install gnu-sed # (OS X)
And use this command line:
$ echo | ./bach.sed | play -r 44100 -e unsigned -b 8 -c 1 -t raw -
It should be possible to run on Windows using Cygwin but I haven't tried doing that.
Pre-recorded version
Alternatively, you can listen to the mp3 in this repository or listen here.
Recommend
-
70
vpnify - transparently route traffic of a process through VPN - laserbat/vpnify
-
41
A sed script that draws mandelbrot sed. Contribute to laserbat/mandelbrot.sed development by creating an account on GitHub.
-
8
Conversation Copy link Contributor
-
7
Godel, Escher, Bach [2] Tue, Nov 11, 2008 • Algorithms 素数判定...
-
11
Chef BACH Overview This is a set of Chef cookbooks to bring up Hadoop and Kafka clusters. In additi...
-
13
AF[Thanks to Jacob Falkovich, Eric Neyman, and my LessWrong reviewer, among others, for their feedbac...
-
8
30 November 2022 Bach’s accidental masterpiece...
-
13
... highlighted falling chromatic motion with white-outlined rhombi ... used connecting lines to highlight some points of imitation.Contrapunctus 4 Here, the n...
-
13
Preserving Bach’s manuscripts Two Johann Sebastian Bach manuscripts in the British Library’s music collections - the autograph manuscript of the second book of the Well-Tempered Clavier (BWV 870-893) and of the cantata ‘Wo soll ich f...
-
6
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK