Sophie

Sophie

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

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  MIDI in
-odac           -iadc     -d         -M0  ;;;RT audio I/O with MIDI in
; For Non-realtime ouput leave only the line below:
; -o ctrl7.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Instrument #1.
instr 1
 ; This example expects MIDI controller input on channel 1
; run and move your midi controller to see result

imax=15000
imin=0
ichan = 1 
ictlno=7					; = midi volume

	initc7	1, 7, 1			; start at max. volume
kamp	ctrl7	ichan,ictlno, imin, imax	; controller 7
	printk2	kamp
a1	oscil	kamp,440,1
	out	a1

endin

</CsInstruments>
<CsScore>

f 1 0 4096 10 1
i1 0 20
e


</CsScore>
</CsoundSynthesizer>