User:Megan hoogenboom/assignment: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "cat << END @head { \$time_sig 4/4 \$tempo 120 } @body { @channel 1 { \$patch 16 \$octave 7 \$length 16 END for ((i=0; i<=12; i++)) do echo c c ...")
 
No edit summary
Line 1: Line 1:
code:
cat << END
cat << END
@head {
@head {

Revision as of 10:20, 19 October 2010

code:

cat << END @head { \$time_sig 4/4 \$tempo 120 }

@body {

@channel 1 { \$patch 16 \$octave 7 \$length 16 END

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

cat << END

   }
      

@channel 2 { \$patch 16 \$octave 5 \$length 16 END

       pat="c c c r c c r c r c c r "
       for ((i=0; i<=12; i++))
       do 
       echo $pat
       pat=${pat:2}${pat::2}
       done
  1. mijn ding:
  2. lala="cccrccrcrccr"
  3. lala2="c c c r c c r c r c c r"
  4. for ((i=0; i<=12; i++))
  5. do
  6. echo ${lala2:$i} ${lala:$i:1}
  7. done

cat << END } } END