User:Yiorgos Bagakis/prototyping/assignment1: Difference between revisions
(5 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
'''Description''' | '''Description''' | ||
I am interested in using permutations in my first thematic project and the following exercise is a good starting point. As a form of concrete poetry, permutation poems emphasize in the creation of patterns and pictures out of letters and words. These may disclose, new decorative and semantic possibilities. Since I am quite inexperienced with code, I found this input example easy to follow and straight forward for understanding the sed substitutions while I listen to the final piece. The example I used is one of the famous Gysin poems. For the future project I am planning to work on I would like to create a permutations software. | |||
'''Input example''' | '''Input example''' | ||
Line 60: | Line 62: | ||
</source> | </source> | ||
iamthatiam.sed | Then I executed the iamthatiam.sed on the terminal and with pipeline I created a txt file | ||
<source lang="php"> | <source lang="php"> | ||
sed -f iamthatiam.sed iamthatiam.txt > iati-out.txt | |||
</source> | </source> | ||
iata-out.txt output: | |||
<source lang="php"> | |||
c d e c d | |||
c d d c e | |||
c d e d c | |||
c d c e d | |||
c e d c d | |||
c d c d e | |||
c d d e c | |||
c e d d c | |||
e c c d d | |||
d e c c d | |||
d d e c c | |||
d c d e c | |||
d d c e c | |||
d d c c e | |||
d e c d c | |||
d c c e d | |||
d c d c e | |||
d c c d e | |||
e d c c d | |||
d c e d c | |||
e c d d c | |||
d c e c d | |||
d e d c c | |||
e d d c c | |||
e c d c d | |||
c c d d e | |||
c e c d d | |||
c c e d d | |||
e d c d c | |||
c c d e d | |||
</source> | |||
wrap.sh | wrap.sh | ||
Line 73: | Line 107: | ||
<source lang="php"> | <source lang="php"> | ||
cat << END | cat << END | ||
@head { | @head { | ||
\$time_sig 4/4 | \$time_sig 4/4 | ||
\$tempo | \$tempo 80 | ||
} | } | ||
@body { | @body { | ||
@channel 1 { | @channel 1 { | ||
\$patch 14 | \$patch 14 | ||
\$octave | \$octave 8 | ||
\$length | \$length 16 | ||
END | END | ||
sed -f iamthatiam.sed iamthatiam.txt | |||
cat << END | |||
} | } | ||
} | } | ||
END | END | ||
</source> | |||
And this will create the .mid file: | |||
<source lang="php"> | <source lang="php"> | ||
bash wrap.sh | midge -o iamthatiam.mid | |||
</source> | |||
Here is the final audio file: | |||
[[File:iamthatiam.ogg]] |
Latest revision as of 00:55, 26 October 2010
I AM THAT I AM
After Brion Gysin's permutation poem
Description
I am interested in using permutations in my first thematic project and the following exercise is a good starting point. As a form of concrete poetry, permutation poems emphasize in the creation of patterns and pictures out of letters and words. These may disclose, new decorative and semantic possibilities. Since I am quite inexperienced with code, I found this input example easy to follow and straight forward for understanding the sed substitutions while I listen to the final piece. The example I used is one of the famous Gysin poems. For the future project I am planning to work on I would like to create a permutations software.
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
Then I executed the iamthatiam.sed on the terminal and with pipeline I created a txt file
sed -f iamthatiam.sed iamthatiam.txt > iati-out.txt
iata-out.txt output:
c d e c d
c d d c e
c d e d c
c d c e d
c e d c d
c d c d e
c d d e c
c e d d c
e c c d d
d e c c d
d d e c c
d c d e c
d d c e c
d d c c e
d e c d c
d c c e d
d c d c e
d c c d e
e d c c d
d c e d c
e c d d c
d c e c d
d e d c c
e d d c c
e c d c d
c c d d e
c e c d d
c c e d d
e d c d c
c c d e d
wrap.sh
cat << END
@head {
\$time_sig 4/4
\$tempo 80
}
@body {
@channel 1 {
\$patch 14
\$octave 8
\$length 16
END
sed -f iamthatiam.sed iamthatiam.txt
cat << END
}
}
END
And this will create the .mid file:
bash wrap.sh | midge -o iamthatiam.mid
Here is the final audio file: File:Iamthatiam.ogg