Sophie

Sophie

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

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

<CsoundSynthesizer>
<CsOptions>
; no sound output
 -n
</CsOptions>
<CsInstruments>

sr = 44100	; audio rate is not important
kr = 10	; execute the statements in instr 1 ten times per second

instr 1
	; ax will vary from 1 to 10
	ax         init        1
	
	; ay = ax^3 + 2ax^2 + 3ax + 4
	ay         polynomial  ax, 4, 3, 2, 1
	
	; convert our a-rate signals to k-rate values so that we can print
	ky         downsamp    ay
	kx         downsamp    ax
	           printf      "%d:  %d\n", kx, kx, ky

	ax         =           ax + 1
endin

</CsInstruments>
<CsScore>

i1 0 1
e

</CsScore>
</CsoundSynthesizer>