Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 1648

csound-manual-5.13.0-5.fc15.noarch.rpm

<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
; Audio out   Audio in    No messages
-odac           -iadc     -d    ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o fog.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

instr 1

;p4 = transposition factor
;p5 = speed factor
;p6 = function table for grain data
i1	=	sr/ftlen(p6) ;scaling to reflect sample rate and table length
a1	phasor	i1*p5 ;index for speed
a2	fog	15000, 20, p4, a1, 1, 0, .01, .5, .01, 30, 1, 2, p3 

	out	a2
endin

</CsInstruments>
<CsScore>
f 1 0 131072 1 "beats.wav" 0 0 0
f 2 0 1024 19 .5 .5 270 .5

i 1 0 6 1 .01 1
e
</CsScore>
</CsoundSynthesizer>