User:Inge Hoonte/shhmg
< User:Inge Hoonte
Revision as of 15:55, 12 October 2010 by Inge Hoonte (talk | contribs)
<source lang="bash"> cat << END @head {
\$time_sig 4/4 \$tempo 120
} @body {
@channel 1 { \$patch 89 \$octave 3 \$length 12
- patch is instrument
END for ((i=1; i<=166; i+=1))
- 12x13
do echo c c c r c c r c r c c r done
cat << END
}
@channel 2 {
\$patch 89
\$octave 10
\$length 12
END
pat="c c c r c c r c r c c r "
for ((i=1; i<=13; i+=1))
do
for ((h=1; h<=12; h+=1))
do
echo $pat
done
- shift pattern
- take off first one and put at end
- c c r c c r c r c c r c
pat=${pat:2}${pat::2}
done
cat << END
}
} END