User:Darija Medic/bash clap: Difference between revisions
Darija Medic (talk | contribs) (Created page with "@head { \$time_sig 3/4 \$tempo 50 } @body { @channel 1 { \$patch 33 \$octave 4 \$length 30 \$pan 0 END pat=xxxoxxoxoxxo ...") |
Darija Medic (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<source lang="bash"> | |||
@head { | @head { | ||
\$time_sig 3/4 | \$time_sig 3/4 | ||
Line 42: | Line 43: | ||
END | END | ||
</source> |
Revision as of 10:57, 14 October 2010
@head {
\$time_sig 3/4
\$tempo 50
}
@body {
@channel 1 {
\$patch 33
\$octave 4
\$length 30
\$pan 0
END
pat=xxxoxxoxoxxo
for ((i=0; i<13; i++))
do
echo $pat | sed 's/x/g /g; s/o/r /g'
done
cat << END
}
@channel 2 {
\$patch 33
\$octave 4
\$length 30
\$pan 127
END
pat=xxxoxxoxoxxoxxxoxxoxoxxo
for ((i=0; i<13; i++))
do
echo ${pat:$i:12} | sed 's/x/e /g; s/o/r /g'
done
cat << END
}
}
END