User:Megan Hoogenboom/assignment1: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
===Overzicht bezuinigingen op cultuur (Overview budget-cuts on culture) as a song===
===Overzicht bezuinigingen op cultuur (Overview budget-cuts on culture) as a song===


A bit of the text used:
'''A bit of the text used:'''


''Overzicht bezuinigingen op cultuur  
''Overzicht bezuinigingen op cultuur  
Line 28: Line 28:




wrap.sh:
'''wrap.sh:'''


<source lang="php">
<source lang="php">
Line 56: Line 56:
</source>
</source>


The sed code, transforming the text into notes:
'''The sed code, transforming the text into notes:'''


<source lang="php">
<source lang="php">
Line 100: Line 100:


</source>
</source>
'''Output:'''




[[Category: 2011 P1.01]]
[[Category: 2011 P1.01]]
[[Category: Prototyping]]
[[Category: Prototyping]]

Revision as of 19:59, 1 November 2010

Overzicht bezuinigingen op cultuur (Overview budget-cuts on culture) as a song

A bit of the text used:

Overzicht bezuinigingen op cultuur Concept regeerakkoord Rutte‐Verhagen Kunsten ’92 – 1 oktober 2010

In het kort In het kort: totale structurele bezuinigingen en afschaffen van regelingen gerelateerd aan cultuur lopen op tot in totaal 346 miljoen euro. Daarnaast zal de sector een groot bedrag mislopen door bevriezing van de lonen en mislopen prijscompensatie. De gevolgen van maatregelen op andere gebieden zoals de korting op het gemeentefonds en de bezuiniging op de omroep zijn hierbij nog buiten beschouwing gelaten.

De maatregelen Cultuur

1.Cultuursubsidies 2. Verhoging BTW tarief podiumkunsten en kunstaankopen 3. Afschaffen WWIK 4. Opheffing Muziekcentrum van de Omroep (MCO) 5. Bevriezen lonen collectieve sector

And so on..


wrap.sh:

cat <<EOF
@head {
    \$time_sig 4/4
    \$tempo 120
}
@body {
 
    @channel 1 {
        \$patch 8
        \$octave 2
        \$length 16
 
        # notes here!
EOF
 
cat
 
cat <<EOF
    }
}
EOF

The sed code, transforming the text into notes:

s/[^a-z]//g
s/a/ a /g
s/b/ b /g
s/c/ c /g
s/d/ d /g
s/e/ e /g
s/é/ e+ /g
s/ë/ e+ /g
s/f/ f /g
s/g/ g /g
s/h/ a /g
s/i/ a+ /g
s/j/ b+ /g
s/k/ c+ /g
s/l/ d+ /g
s/m/ e+ /g
s/n/ f+ /g
s/o/ g+ /g
s/p/ r /g
s/q/ r /g
s/r/ r /g
s/s/ r /g
s/t/ r /g
s/u/ r /g
s/v/ r /g
s/w/ r /g
s/x/ r /g
s/y/ r /g
s/z/ r /g

In the bash, to make it into a .mid file

sed tekst.txt -f notes.sed | bash wrap.sh | midge -o la.mid
timidity la.mid

Output: