User:Birgit bachler/clapping

From XPUB & Lens-Based wiki
< User:Birgit bachler
Revision as of 15:03, 12 October 2010 by Birgit bachler (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
cat << STOP
@head {
    \$time_sig 4/4
    \$tempo 120
}
@body {
 
    @channel 1 {
        \$patch 34
        \$octave 3
        \$length 8



STOP

notes="c c c r c c r c r c c r "
    for ((j=0; j<13; j++))
    do 
        for ((i=0; i<12; i++))
        do
        echo $notes
        done
    notes=${notes:2}${notes::2}
    done


cat << STOP
}

	@channel 2 {
	    \$patch 34
        \$length 8
        \$octave 3
  
STOP

notes="c c c r c c r c r c c r "
    for ((j=0; j<13; j++))
    do
        for ((i=0; i<12; i++))
        do 
        echo $notes
        done
    done

cat << STOP

} 
}
STOP