electric
Sep 01, 2007, 12:45 AM
Here's a pair of programs which allows you to craft chords and replay them by pushing one button.
If you fire up the first program you'll get six sliders and six counters for setting the amplitudes and frequencies of the components of the chord.
There's a checkbox on top. If you click it the chord will get stored in a file called snap.txt.
(You have to click, then wait until the counter reacts, then click again, or it will store the same chord more than once.)
You can store up to 96 chords, and on the buttonbank of chordplay they will appear in the order as recorded,
from top left downwards one column after the other.
The csound files could be called chordrec.csd and chordplay.csd
<CsoundSynthesizer>
<CsOptions>
csound -d -o devaudio
</CsOptions>
<CsInstruments>
sr=44100
FLcolor 100,200,200
FLpanel " ",1280,1024,0,0
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gkfake gifake FLbutton " ",1,0,2,5,5,1150,800,-1
gihand1 FLvalue " ",1,1,0,0
FLcolor 170,210,230
gkfreq1 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,210,-1,0
gkfreq2 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,260,-1,0
gkfreq3 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,310,-1,0
gkfreq4 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,360,-1,0
gkfreq5 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,410,-1,0
gkfreq6 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,460,-1,0
FLcolor 170,210,140,210,230,150
gkamp1 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,210
gkamp2 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,260
gkamp3 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,310
gkamp4 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,360
gkamp5 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,410
gkamp6 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,460
FLcolor 200,190,160
gktrig gihan FLbutton " ",1,0,2,50,50,270,90,-1
giprint FLvalue " ",50,20,270,70
FLpanelEnd
FLrun
gkind init 0
instr 1
ibase=12.13
a1 poscil gkamp1,ibase*gkfreq1, 1
a2 poscil gkamp1,ibase*gkfreq1+.5, 1
a3 poscil gkamp1,ibase*gkfreq1+1.3, 1
a4 poscil gkamp1, ibase*gkfreq1+3.2,1
a5 poscil gkamp2*2,ibase*gkfreq2, 1
a6 poscil gkamp2,ibase*gkfreq2+.71, 1
a7 poscil gkamp2,ibase*gkfreq2+1.62, 1
a8 poscil gkamp2, ibase*gkfreq2+3.73,1
a9 poscil gkamp3,ibase*gkfreq3, 1
a10 poscil gkamp3,ibase*gkfreq3+.64, 1
a11 poscil gkamp3,ibase*gkfreq3+1.45, 1
a12 poscil gkamp3, ibase*gkfreq3+3.46,1
a13 poscil gkamp4,ibase*gkfreq4, 1
a14 poscil gkamp4,ibase*gkfreq4+.87, 1
a15 poscil gkamp4,ibase*gkfreq4+1.98, 1
a16 poscil gkamp4, ibase*gkfreq4+3.69,1
a17 poscil gkamp5,ibase*gkfreq5, 1
a18 poscil gkamp5,ibase*gkfreq5+.43, 1
a19 poscil gkamp5,ibase*gkfreq5+1.34, 1
a20 poscil gkamp5, ibase*gkfreq5+3.15,1
a21 poscil gkamp6,ibase*gkfreq6, 1
a22 poscil gkamp6,ibase*gkfreq6+.96, 1
a23 poscil gkamp6,ibase*gkfreq6+1.57, 1
a24 poscil gkamp6, ibase*gkfreq6+3.98,1
ar=a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11+a12+a13+a14+a15+a16+a17+a18+a19+a20+a21+a22+a23+a24
ar=ar/4
ar clip ar,1,32000
out ar
schedkwhen gktrig,1.5,1,2,0,.1,gkind
endin
instr 2
FLprintk2 p4+1,giprint
inum, inums FLsetsnap p4
FLsavesnap "snap.txt"
gkind=gkind+1
turnoff
endin
</CsInstruments>
<CsScore>
;f 1 0 65536 9 1 9 0 2 9 0 3 6 0 4 6 0 5 5 0 6 5 0 7 3 0 8 3 0 9 2 0 10 1 0 11 1 0 12 1 0 13 1 0 14 1 0 15 2 0 16 1 0 17 1 0 18 1 0 19 1 0 20 1 0 21 1 0 22 1 0 23 1 0 24 1 0 25 2 0 26 1 0 27 1 0
f 1 0 65536 10 9 8 7 6 5 4 3 2 1
i1 0 1800
</CsScore>
</CsoundSynthesizer>
=================================================0
(end of file)
=================================================0
<CsoundSynthesizer>
<CsOptions>
csound -d -o devaudio
</CsOptions>
<CsInstruments>
sr=44100
FLcolor 180,200,140
FLpanel " ",1280,1024,0,0
FLtabs 1270,1000,5,24
FLcolor2 150,200,180
FLgroup " ",1280,980,0,44,4
FLcolor 150,210,180
gk0 gihan FLbutton " ",1,0,2,80,60,330,160,-1
gk1 gihan FLbutton " ",1,0,2,80,60,330,220,-1
gk2 gihan FLbutton " ",1,0,2,80,60,330,280,-1
FLcolor 230,120,120
gk3 gihan FLbutton " ",1,0,2,80,60,330,340,-1
FLcolor 230,180,110
gk4 gihan FLbutton " ",1,0,2,80,60,330,400,-1
gk5 gihan FLbutton " ",1,0,2,80,60,330,460,-1
gk6 gihan FLbutton " ",1,0,2,80,60,330,520,-1
gk7 gihan FLbutton " ",1,0,2,80,60,330,580,-1
FLcolor 230,120,120
gk8 gihan FLbutton " ",1,0,2,80,60,330,640,-1
FLcolor 150,210,180
gk9 gihan FLbutton " ",1,0,2,80,60,330,700,-1
gk10 gihan FLbutton " ",1,0,2,80,60,330,760,-1
gk11 gihan FLbutton " ",1,0,2,80,60,330,820,-1
gk12 gihan FLbutton " ",1,0,2,80,60,410,160,-1
FLcolor 140,210,220
gk13 gihan FLbutton " ",1,0,2,80,60,410,220,-1
gk14 gihan FLbutton " ",1,0,2,80,60,410,280,-1
FLcolor 230,120,160
gk15 gihan FLbutton " ",1,0,2,80,60,410,340,-1
FLcolor 230,200,90
gk16 gihan FLbutton " ",1,0,2,80,60,410,400,-1
FLcolor 240,220,130
gk17 gihan FLbutton " ",1,0,2,80,60,410,460,-1
gk18 gihan FLbutton " ",1,0,2,80,60,410,520,-1
FLcolor 230,200,90
gk19 gihan FLbutton " ",1,0,2,80,60,410,580,-1
FLcolor 230,120,160
gk20 gihan FLbutton " ",1,0,2,80,60,410,640,-1
FLcolor 140,210,220
gk21 gihan FLbutton " ",1,0,2,80,60,410,700,-1
gk22 gihan FLbutton " ",1,0,2,80,60,410,760,-1
FLcolor 150,210,180
gk23 gihan FLbutton " ",1,0,2,80,60,410,820,-1
FLcolor 160,180,250
gk24 gihan FLbutton " ",1,0,2,80,60,490,160,-1
FLcolor 140,180,210
gk25 gihan FLbutton " ",1,0,2,80,60,490,220,-1
gk26 gihan FLbutton " ",1,0,2,80,60,490,280,-1
gk27 gihan FLbutton " ",1,0,2,80,60,490,340,-1
FLcolor 180,230,160
gk28 gihan FLbutton " ",1,0,2,80,60,490,400,-1
FLcolor 200,200,200
gk29 gihan FLbutton " ",1,0,2,80,60,490,460,-1
gk30 gihan FLbutton " ",1,0,2,80,60,490,520,-1
FLcolor 180,230,160
gk31 gihan FLbutton " ",1,0,2,80,60,490,580,-1
FLcolor 140,180,210
gk32 gihan FLbutton " ",1,0,2,80,60,490,640,-1
gk33 gihan FLbutton " ",1,0,2,80,60,490,700,-1
gk34 gihan FLbutton " ",1,0,2,80,60,490,760,-1
FLcolor 160,180,250
gk35 gihan FLbutton " ",1,0,2,80,60,490,820,-1
FLcolor 240,160,190
gk36 gihan FLbutton " ",1,0,2,80,60,570,160,-1
gk37 gihan FLbutton " ",1,0,2,80,60,570,220,-1
FLcolor 230,180,230
gk38 gihan FLbutton " ",1,0,2,80,60,570,280,-1
FLcolor 200,220,120
gk39 gihan FLbutton " ",1,0,2,80,60,570,340,-1
gk40 gihan FLbutton " ",1,0,2,80,60,570,400,-1
FLcolor 180,160,220
gk41 gihan FLbutton " ",1,0,2,80,60,570,460,-1
gk42 gihan FLbutton " ",1,0,2,80,60,570,520,-1
FLcolor 200,220,120
gk43 gihan FLbutton " ",1,0,2,80,60,570,580,-1
gk44 gihan FLbutton " ",1,0,2,80,60,570,640,-1
FLcolor 230,180,230
gk45 gihan FLbutton " ",1,0,2,80,60,570,700,-1
FLcolor 240,160,190
gk46 gihan FLbutton " ",1,0,2,80,60,570,760,-1
gk47 gihan FLbutton " ",1,0,2,80,60,570,820,-1
gk48 gihan FLbutton " ",1,0,2,80,60,650,160,-1
gk49 gihan FLbutton " ",1,0,2,80,60,650,220,-1
FLcolor 230,180,230
gk50 gihan FLbutton " ",1,0,2,80,60,650,280,-1
FLcolor 200,220,120
gk51 gihan FLbutton " ",1,0,2,80,60,650,340,-1
gk52 gihan FLbutton " ",1,0,2,80,60,650,400,-1
FLcolor 180,160,220
gk53 gihan FLbutton " ",1,0,2,80,60,650,460,-1
gk54 gihan FLbutton " ",1,0,2,80,60,650,520,-1
FLcolor 200,220,120
gk55 gihan FLbutton " ",1,0,2,80,60,650,580,-1
gk56 gihan FLbutton " ",1,0,2,80,60,650,640,-1
FLcolor 230,180,230
gk57 gihan FLbutton " ",1,0,2,80,60,650,700,-1
FLcolor 240,160,190
gk58 gihan FLbutton " ",1,0,2,80,60,650,760,-1
gk59 gihan FLbutton " ",1,0,2,80,60,650,820,-1
FLcolor 160,180,250
gk60 gihan FLbutton " ",1,0,2,80,60,730,160,-1
FLcolor 140,180,210
gk61 gihan FLbutton " ",1,0,2,80,60,730,220,-1
gk62 gihan FLbutton " ",1,0,2,80,60,730,280,-1
gk63 gihan FLbutton " ",1,0,2,80,60,730,340,-1
FLcolor 180,230,160
gk64 gihan FLbutton " ",1,0,2,80,60,730,400,-1
FLcolor 200,200,200
gk65 gihan FLbutton " ",1,0,2,80,60,730,460,-1
gk66 gihan FLbutton " ",1,0,2,80,60,730,520,-1
FLcolor 180,230,160
gk67 gihan FLbutton " ",1,0,2,80,60,730,580,-1
FLcolor 140,180,210
gk68 gihan FLbutton " ",1,0,2,80,60,730,640,-1
gk69 gihan FLbutton " ",1,0,2,80,60,730,700,-1
gk70 gihan FLbutton " ",1,0,2,80,60,730,760,-1
FLcolor 160,180,250
gk71 gihan FLbutton " ",1,0,2,80,60,730,820,-1
FLcolor 150,210,180
gk72 gihan FLbutton " ",1,0,2,80,60,810,160,-1
FLcolor 140,210,220
gk73 gihan FLbutton " ",1,0,2,80,60,810,220,-1
gk74 gihan FLbutton " ",1,0,2,80,60,810,280,-1
FLcolor 230,120,160
gk75 gihan FLbutton " ",1,0,2,80,60,810,340,-1
FLcolor 230,200,90
gk76 gihan FLbutton " ",1,0,2,80,60,810,400,-1
FLcolor 240,220,130
gk77 gihan FLbutton " ",1,0,2,80,60,810,460,-1
gk78 gihan FLbutton " ",1,0,2,80,60,810,520,-1
FLcolor 230,200,90
gk79 gihan FLbutton " ",1,0,2,80,60,810,580,-1
FLcolor 230,120,160
gk80 gihan FLbutton " ",1,0,2,80,60,810,640,-1
FLcolor 140,210,220
gk81 gihan FLbutton " ",1,0,2,80,60,810,700,-1
gk82 gihan FLbutton " ",1,0,2,80,60,810,760,-1
FLcolor 150,210,180
gk83 gihan FLbutton " ",1,0,2,80,60,810,820,-1
gk84 gihan FLbutton " ",1,0,2,80,60,890,160,-1
gk85 gihan FLbutton " ",1,0,2,80,60,890,220,-1
gk86 gihan FLbutton " ",1,0,2,80,60,890,280,-1
FLcolor 230,120,120
gk87 gihan FLbutton " ",1,0,2,80,60,890,340,-1
FLcolor 230,180,110
gk88 gihan FLbutton " ",1,0,2,80,60,890,400,-1
gk89 gihan FLbutton " ",1,0,2,80,60,890,460,-1
gk90 gihan FLbutton " ",1,0,2,80,60,890,520,-1
gk91 gihan FLbutton " ",1,0,2,80,60,890,580,-1
FLcolor 230,120,120
gk92 gihan FLbutton " ",1,0,2,80,60,890,640,-1
FLcolor 150,210,180
gk93 gihan FLbutton " ",1,0,2,80,60,890,700,-1
gk94 gihan FLbutton " ",1,0,2,80,60,890,760,-1
gk95 gihan FLbutton " ",1,0,2,80,60,890,820,-1
FLgroupEnd
FLcolor2 150,180,210
FLgroup " ",1270,980,5,44,4
gihand1 FLvalue " ",1,1,0,0
FLcolor 170,210,230
gkfreq1 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,210,-1,0
gkfreq2 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,260,-1,0
gkfreq3 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,310,-1,0
gkfreq4 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,360,-1,0
gkfreq5 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,410,-1,0
gkfreq6 gihandle7 FLcount " ",6,64,1,4,1,200,40,510,460,-1,0
FLcolor 170,210,140,210,230,150
gkamp1 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,210
gkamp2 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,260
gkamp3 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,310
gkamp4 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,360
gkamp5 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,410
gkamp6 gihan FLslider " ",1,10000,0,1,gihand1,200,40,190,460
FLcolor 200,190,160
gktrig gihan FLbutton " ",1,0,2,50,50,270,90,-1
giprint FLvalue " ",50,20,270,70
FLgroupEnd
FLtabsEnd
FLpanelEnd
FLloadsnap "snap.txt"
FLrun
instr 1
ibase=12.13
a1 poscil gkamp1,ibase*gkfreq1, 1
a2 poscil gkamp1,ibase*gkfreq1+.5, 1
a3 poscil gkamp1,ibase*gkfreq1+1.3, 1
a4 poscil gkamp1, ibase*gkfreq1+3.2,1
a5 poscil gkamp2*2,ibase*gkfreq2, 1
a6 poscil gkamp2,ibase*gkfreq2+.71, 1
a7 poscil gkamp2,ibase*gkfreq2+1.62, 1
a8 poscil gkamp2, ibase*gkfreq2+3.73,1
a9 poscil gkamp3,ibase*gkfreq3, 1
a10 poscil gkamp3,ibase*gkfreq3+.64, 1
a11 poscil gkamp3,ibase*gkfreq3+1.45, 1
a12 poscil gkamp3, ibase*gkfreq3+3.46,1
a13 poscil gkamp4,ibase*gkfreq4, 1
a14 poscil gkamp4,ibase*gkfreq4+.87, 1
a15 poscil gkamp4,ibase*gkfreq4+1.98, 1
a16 poscil gkamp4, ibase*gkfreq4+3.69,1
a17 poscil gkamp5,ibase*gkfreq5, 1
a18 poscil gkamp5,ibase*gkfreq5+.43, 1
a19 poscil gkamp5,ibase*gkfreq5+1.34, 1
a20 poscil gkamp5, ibase*gkfreq5+3.15,1
a21 poscil gkamp6,ibase*gkfreq6, 1
a22 poscil gkamp6,ibase*gkfreq6+.96, 1
a23 poscil gkamp6,ibase*gkfreq6+1.57, 1
a24 poscil gkamp6, ibase*gkfreq6+3.98,1
ar=a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11+a12+a13+a14+a15+a16+a17+a18+a19+a20+a21+a22+a23+a24
ar=ar/4
ar clip ar,1,32000
out ar
schedkwhen gk0,0,1,2,0,0
schedkwhen gk1,0,1,3,0,0
schedkwhen gk2,0,1,4,0,0
schedkwhen gk3,0,1,5,0,0
schedkwhen gk4,0,1,6,0,0
schedkwhen gk5,0,1,7,0,0
schedkwhen gk6,0,1,8,0,0
schedkwhen gk7,0,1,9,0,0
schedkwhen gk8,0,1,10,0,0
schedkwhen gk9,0,1,11,0,0
schedkwhen gk10,0,1,12,0,0
schedkwhen gk11,0,1,13,0,0
schedkwhen gk12,0,1,14,0,0
schedkwhen gk13,0,1,15,0,0
schedkwhen gk14,0,1,16,0,0
schedkwhen gk15,0,1,17,0,0
schedkwhen gk16,0,1,18,0,0
schedkwhen gk17,0,1,19,0,0
schedkwhen gk18,0,1,20,0,0
schedkwhen gk19,0,1,21,0,0
schedkwhen gk20,0,1,22,0,0
schedkwhen gk21,0,1,23,0,0
schedkwhen gk22,0,1,24,0,0
schedkwhen gk23,0,1,25,0,0
schedkwhen gk24,0,1,26,0,0
schedkwhen gk25,0,1,27,0,0
schedkwhen gk26,0,1,28,0,0
schedkwhen gk27,0,1,29,0,0
schedkwhen gk28,0,1,30,0,0
schedkwhen gk29,0,1,31,0,0
schedkwhen gk30,0,1,32,0,0
schedkwhen gk31,0,1,33,0,0
schedkwhen gk32,0,1,34,0,0
schedkwhen gk33,0,1,35,0,0
schedkwhen gk34,0,1,36,0,0
schedkwhen gk35,0,1,37,0,0
schedkwhen gk36,0,1,38,0,0
schedkwhen gk37,0,1,39,0,0
schedkwhen gk38,0,1,40,0,0
schedkwhen gk39,0,1,41,0,0
schedkwhen gk40,0,1,42,0,0
schedkwhen gk41,0,1,43,0,0
schedkwhen gk42,0,1,44,0,0
schedkwhen gk43,0,1,45,0,0
schedkwhen gk44,0,1,46,0,0
schedkwhen gk45,0,1,47,0,0
schedkwhen gk46,0,1,48,0,0
schedkwhen gk47,0,1,49,0,0
schedkwhen gk48,0,1,50,0,0
schedkwhen gk49,0,1,51,0,0
schedkwhen gk50,0,1,52,0,0
schedkwhen gk51,0,1,53,0,0
schedkwhen gk52,0,1,54,0,0
schedkwhen gk53,0,1,55,0,0
schedkwhen gk54,0,1,56,0,0
schedkwhen gk55,0,1,57,0,0
schedkwhen gk56,0,1,58,0,0
schedkwhen gk57,0,1,59,0,0
schedkwhen gk58,0,1,60,0,0
schedkwhen gk59,0,1,61,0,0
schedkwhen gk60,0,1,62,0,0
schedkwhen gk61,0,1,63,0,0
schedkwhen gk62,0,1,64,0,0
schedkwhen gk63,0,1,65,0,0
schedkwhen gk64,0,1,66,0,0
schedkwhen gk65,0,1,67,0,0
schedkwhen gk66,0,1,68,0,0
schedkwhen gk67,0,1,69,0,0
schedkwhen gk68,0,1,70,0,0
schedkwhen gk69,0,1,71,0,0
schedkwhen gk70,0,1,72,0,0
schedkwhen gk71,0,1,73,0,0
schedkwhen gk72,0,1,74,0,0
schedkwhen gk73,0,1,75,0,0
schedkwhen gk74,0,1,76,0,0
schedkwhen gk75,0,1,77,0,0
schedkwhen gk76,0,1,78,0,0
schedkwhen gk77,0,1,79,0,0
schedkwhen gk78,0,1,80,0,0
schedkwhen gk79,0,1,81,0,0
schedkwhen gk80,0,1,82,0,0
schedkwhen gk81,0,1,83,0,0
schedkwhen gk82,0,1,84,0,0
schedkwhen gk83,0,1,85,0,0
schedkwhen gk84,0,1,86,0,0
schedkwhen gk85,0,1,87,0,0
schedkwhen gk86,0,1,88,0,0
schedkwhen gk87,0,1,89,0,0
schedkwhen gk88,0,1,90,0,0
schedkwhen gk89,0,1,91,0,0
schedkwhen gk90,0,1,92,0,0
schedkwhen gk91,0,1,93,0,0
schedkwhen gk92,0,1,94,0,0
schedkwhen gk93,0,1,95,0,0
schedkwhen gk94,0,1,96,0,0
schedkwhen gk95,0,1,97,0,0
endin
instr 2
inum FLgetsnap 0
endin
instr 3
inum FLgetsnap 1
endin
instr 4
inum FLgetsnap 2
endin
instr 5
inum FLgetsnap 3
endin
instr 6
inum FLgetsnap 4
endin
instr 7
inum FLgetsnap 5
endin
instr 8
inum FLgetsnap 6
endin
instr 9
inum FLgetsnap 7
endin
instr 10
inum FLgetsnap 8
endin
instr 11
inum FLgetsnap 9
endin
instr 12
inum FLgetsnap 10
endin
instr 13
inum FLgetsnap 11
endin
instr 14
inum FLgetsnap 12
endin
instr 15
inum FLgetsnap 13
endin
instr 16
inum FLgetsnap 14
endin
instr 17
inum FLgetsnap 15
endin
instr 18
inum FLgetsnap 16
endin
instr 19
inum FLgetsnap 17
endin
instr 20
inum FLgetsnap 18
endin
instr 21
inum FLgetsnap 19
endin
instr 22
inum FLgetsnap 20
endin
instr 23
inum FLgetsnap 21
endin
instr 24
inum FLgetsnap 22
endin
instr 25
inum FLgetsnap 23
endin
instr 26
inum FLgetsnap 24
endin
instr 27
inum FLgetsnap 25
endin
instr 28
inum FLgetsnap 26
endin
instr 29
inum FLgetsnap 27
endin
instr 30
inum FLgetsnap 28
endin
instr 31
inum FLgetsnap 29
endin
instr 32
inum FLgetsnap 30
endin
instr 33
inum FLgetsnap 31
endin
instr 34
inum FLgetsnap 32
endin
instr 35
inum FLgetsnap 33
endin
instr 36
inum FLgetsnap 34
endin
instr 37
inum FLgetsnap 35
endin
instr 38
inum FLgetsnap 36
endin
instr 39
inum FLgetsnap 37
endin
instr 40
inum FLgetsnap 38
endin
instr 41
inum FLgetsnap 39
endin
instr 42
inum FLgetsnap 40
endin
instr 43
inum FLgetsnap 41
endin
instr 44
inum FLgetsnap 42
endin
instr 45
inum FLgetsnap 43
endin
instr 46
inum FLgetsnap 44
endin
instr 47
inum FLgetsnap 45
endin
instr 48
inum FLgetsnap 46
endin
instr 49
inum FLgetsnap 47
endin
instr 50
inum FLgetsnap 48
endin
instr 51
inum FLgetsnap 49
endin
instr 52
inum FLgetsnap 50
endin
instr 53
inum FLgetsnap 51
endin
instr 54
inum FLgetsnap 52
endin
instr 55
inum FLgetsnap 53
endin
instr 56
inum FLgetsnap 54
endin
instr 57
inum FLgetsnap 55
endin
instr 58
inum FLgetsnap 56
endin
instr 59
inum FLgetsnap 57
endin
instr 60
inum FLgetsnap 58
endin
instr 61
inum FLgetsnap 59
endin
instr 62
inum FLgetsnap 60
endin
instr 63
inum FLgetsnap 61
endin
instr 64
inum FLgetsnap 62
endin
instr 65
inum FLgetsnap 63
endin
instr 66
inum FLgetsnap 64
endin
instr 67
inum FLgetsnap 65
endin
instr 68
inum FLgetsnap 66
endin
instr 69
inum FLgetsnap 67
endin
instr 70
inum FLgetsnap 68
endin
instr 71
inum FLgetsnap 69
endin
instr 72
inum FLgetsnap 70
endin
instr 73
inum FLgetsnap 71
endin
instr 74
inum FLgetsnap 72
endin
instr 75
inum FLgetsnap 73
endin
instr 76
inum FLgetsnap 74
endin
instr 77
inum FLgetsnap 75
endin
instr 78
inum FLgetsnap 76
endin
instr 79
inum FLgetsnap 77
endin
instr 80
inum FLgetsnap 78
endin
instr 81
inum FLgetsnap 79
endin
instr 82
inum FLgetsnap 80
endin
instr 83
inum FLgetsnap 81
endin
instr 84
inum FLgetsnap 82
endin
instr 85
inum FLgetsnap 83
endin
instr 86
inum FLgetsnap 84
endin
instr 87
inum FLgetsnap 85
endin
instr 88
inum FLgetsnap 86
endin
instr 89
inum FLgetsnap 87
endin
instr 90
inum FLgetsnap 88
endin
instr 91
inum FLgetsnap 89
endin
instr 92
inum FLgetsnap 90
endin
instr 93
inum FLgetsnap 91
endin
instr 94
inum FLgetsnap 92
endin
instr 95
inum FLgetsnap 93
endin
instr 96
inum FLgetsnap 94
endin
instr 97
inum FLgetsnap 95
endin
</CsInstruments>
<CsScore>
;f 1 0 65536 9 1 9 0 2 9 0 3 6 0 4 6 0 5 5 0 6 5 0 7 3 0 8 3 0 9 2 0 10 1 0 11 1 0 12 1 0 13 1 0 14 1 0 15 2 0 16 1 0 17 1 0 18 1 0 19 1 0 20 1 0 21 1 0 22 1 0 23 1 0 24 1 0 25 2 0 26 1 0 27 1 0
f 1 0 65536 10 9 8 7 6 5 4 3 2 1
i1 0 1800
</CsScore>
</CsoundSynthesizer>