User:Renee Oldemonnikhof/assignment: Difference between revisions
(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 |
(2 intermediate revisions by the same user not shown) | |
(No difference)
|
Latest revision as of 10:48, 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