User:Birgit bachler/clapping: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<source lang="bash">
<source lang="bash">
notes="c c c r c c r c r c c r"
cat << STOP
cat << STOP
@head {
@head {
Line 9: Line 8:
   
   
     @channel 1 {
     @channel 1 {
         \$patch 1
         \$patch 34
         \$octave 4
         \$octave 3
         \$length 16
         \$length 8




Line 17: Line 16:
STOP
STOP


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


Line 30: Line 29:
cat << STOP
cat << STOP
}
}


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


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

Latest revision as of 15:03, 12 October 2010

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