User:Inge Hoonte/shhmg: Difference between revisions
Inge Hoonte (talk | contribs) (Created page with "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<...") |
Inge Hoonte (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<source lang="bash"> | |||
cat << END | cat << END | ||
@head { | @head { |
Latest revision as of 15:55, 12 October 2010
<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