aboutsummaryrefslogtreecommitdiff
path: root/examples/example1.csd
blob: 7108182c8b68a34de72588b3175b43323e6c5f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 1
nchnls = 2
0dbfs = 1
seed 0

/*
	list the cues in the file, showing time in seconds and samples
*/
instr run
	Sfile = "example1.wav"
	icues[] cueextract Sfile
	isr = filesr(Sfile)
	
	index = 0
	while (index < lenarray(icues)) do
		prints sprintf("%f (%d)\n", icues[index] / sr, icues[index])
		index += 1
	od
endin

</CsInstruments>
<CsScore>
i"run" 0 1
</CsScore>
</CsoundSynthesizer>