[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: obsfuscated use of lilypond
From: |
Patrick McCarty |
Subject: |
Re: obsfuscated use of lilypond |
Date: |
Fri, 5 Feb 2010 00:15:58 -0800 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On 2010-02-05, Helge Kruse wrote:
> I found a lilypond script on a programmer's website. It shall print
> piano keys. But this gives only errors when I compile it with
> lilypond. Would it be really possible to achieve what is requested
> or is it just a joke?
>
> Here is the link: http://kuerzer.de/DpMHSdKCO
Sure! That's quite interesting.
Attached is the "unobfuscated" code that compiles just fine. I'm not
entirely sure what's wrong with the original, but it might be that
there is too *little* whitespace somewhere. :-)
Here is some example output:
$ echo A 7 | lilypond obfuscated.ly 2>/dev/null
## ### | ### ### | ### ##
## ### | ### ### | ### ##
## ### | ### ### | ### ##
## ### | ### ### | ### ##
## ### | ### ### | ### ##
| | | | | | | |
| | | | | | | |
| | | | | | | |
|____|____|____|____|____|____|____|
-Patrick
obfuscated.ly
Description: Text document