Assignment 1
I AM THAT I AM
After Brion Gysin's permutation poem
Description
Input example
iamthatiam.txt
I AM THAT I AM
I AM AM I THAT
I AM THAT AM I
I AM I THAT AM
I THAT AM I AM
I AM I AM THAT
I AM AM THAT I
I THAT AM AM I
THAT I I AM AM
AM THAT I I AM
AM AM THAT I I
AM I AM THAT I
AM AM I THAT I
AM AM I I THAT
AM THAT I AM I
AM I I THAT AM
AM I AM I THAT
AM I I AM THAT
THAT AM I I AM
AM I THAT AM I
THAT I AM AM I
AM I THAT I AM
AM THAT AM I I
THAT AM AM I I
THAT I AM I AM
I I AM AM THAT
I THAT I AM AM
I I THAT AM AM
THAT AM I AM I
I I AM THAT AM
iamthatiam.sed
s/I/c /g
s/AM/d /g
s/THAT/e /g
iamthatiam.sed output
s/I/c /g
s/AM/d /g
s/THAT/e /g
wrap.sh
cat << END
@head {
\$time_sig 4/4
\$tempo 120
}
@body {
@channel 1 {
\$patch 14
\$octave 4
\$length 64
END
cat << END
}
}
END
<source lang="php">
sed -f iamthatiam.sed | bash wrap.sh | midge -o iamthatiam.mid