User:Mirjam Dissel/bash clap

From XPUB & Lens-Based wiki
< User:Mirjam Dissel
Revision as of 11:03, 14 October 2010 by Mirjam Dissel (talk | contribs) (Created page with "<source lang="bash"> cat << END @head { \$time_sig 4/4 \$tempo 120 } @body { @channel 1 { \$patch 116 \$octave 4 \$length 16 END for ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<source lang="bash"> cat << END


@head {

   \$time_sig 4/4
   \$tempo 120

}


@body {

   @channel 1 {
       \$patch 116
       \$octave 4
       \$length 16


END

for ((i=0; i<13; i++)) do echo c c c r c c r c r c c r done

cat << END


   }
   @channel 2 {
       \$patch 121
       \$octave 7
       \$length 16


END

pat="c c c r c c r c r c c r "

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


cat << END


   }

}

END