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
@head {
    \$time_sig 4/4
    \$tempo 120
}
@body {
    @channel 1 {
        \$patch 1
        \$octave 4
        \$length 16
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<12; j++))
Line 9: Line 26:
     notes=${notes:2}" "${notes::2}
     notes=${notes:2}" "${notes::2}
     done
     done
</source>


<source lang="bash">
 
cat << STOP
}
 
 
@channel 2 {
    \$patch 1
        \$length 16
        \$octave 6
 
   
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<12; j++))
Line 20: Line 48:
         done
         done
     done
     done
cat << STOP
}
}
STOP
</source>
</source>

Revision as of 15:13, 12 October 2010

notes="c c c r c c r c r c c r"
cat << STOP
@head {
    \$time_sig 4/4
    \$tempo 120
}
@body {
 
    @channel 1 {
        \$patch 1
        \$octave 4
        \$length 16



STOP

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


cat << STOP
}


	@channel 2 {
	    \$patch 1
        \$length 16
        \$octave 6

    
STOP

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

cat << STOP

} 
}
STOP