User:Renee Oldemonnikhof/assignment: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "'''Title is Jingle Bells''' <source lang="text"> cat << end @head { $tempo 120 $time_sig 4/4 } @body { @channel 1 { \$patch 17 \$length 25 ...")
 
No edit summary
Line 1: Line 1:
[[category:2011 P1.01]]
'''Title is Jingle Bells'''
'''Title is Jingle Bells'''
<source lang="text">
<source lang="text">

Revision as of 10:38, 19 October 2010


Title is Jingle Bells

cat << end

@head {
    $tempo 120
    $time_sig 4/4
}
@body {
 
    @channel 1 {
        \$patch 17
        \$length 25
        \$octave 3
        \$pan 0
end

for ((i=0; i<13; i++))
do
echo b b b b b b b d g a b c c c c c b b b b a a b a d b b b b b b b d g a b c c c c c b b b d d c a g 
echo b b b b b b b d g a b c c c c c b b b b a a b a d b b b b b b b d g a b c c c c c b b b d d c a g 
echo b b b b b b b d g a b c c c c c b b b b a a b a d b b b b b b b d g a b c c c c c b b b d d c a g 
echo b b b b b b b d g a b c c c c c b b b b a a b a d b b b b b b b d g a b c c c c c b b b d d c a g 
done

cat << end
    }

 @channel 2 {
        \$patch 17
        \$length 25
        \$octave 3
        \$pan 127

end
pat="b b b b b b b d g a b c c c c c b b b b a a b a d b b b b b b b d g a b c c c c c b b b d d c a g"
pat=$pat$pat$pat$pat

for ((i=0; i<18; i++))
do
echo $pat
pat=${pat:2:0}${pat:0:2}

done

cat << end

}
}
end