User:Yiorgos Bagakis/prototyping/assignment1: Difference between revisions

From XPUB & Lens-Based wiki
Line 60: Line 60:
</source>
</source>


iamthatiam.sed output
Then I executed the iamthatiam.sed on the terminal and with pipeline I created a txt file


<source lang="php">
<source lang="php">
s/I/c /g
sed -f iamthatiam.sed iamthatiam.txt > iati-out.txt
s/AM/d /g
s/THAT/e /g
</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 93: Line 125:
END
END


<source lang="php">
</source>

Revision as of 21:23, 25 October 2010


I AM THAT I AM

After Brion Gysin's permutation poem


permutations software

i am that i am poem by gysin

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

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 120
}
@body {
    @channel 1 {
        \$patch 14
        \$octave 4
        \$length 64

END
 
cat << END

    }
}

END