summaryrefslogtreecommitdiff
path: root/examples/multitap.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multitap.csd')
-rw-r--r--[-rwxr-xr-x]examples/multitap.csd32
1 files changed, 16 insertions, 16 deletions
diff --git a/examples/multitap.csd b/examples/multitap.csd
index 8a30baf..e58d380 100755..100644
--- a/examples/multitap.csd
+++ b/examples/multitap.csd
@@ -1,41 +1,41 @@
<CsoundSynthesizer>
+<CsOptions>
; Select audio/midi flags here according to platform
-; Audio out Audio in No messages
--odac -iadc -d ;;;RT audio I/O
+-odac ;;;realtime audio out
+;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o multitap.wav -W ;;; for file output any platform
-<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
-kr = 4410
-ksmps = 10
-nchnls = 1
+ksmps = 32
+nchnls = 2
+0dbfs = 1
ga1 init 0
instr 1
-a1 oscil 10000, 1000, 1
- out a1
+
+asig diskin2 "beats.wav", 1,0
+ outs asig, asig
-ga1 = ga1+a1
+ga1 = ga1+asig
endin
instr 2
-a2 multitap ga1, 1.2, .5, 1.4, .2
- out a2
+
+asig multitap ga1, 1.2, .5, 1.4, .2
+ outs asig, asig
-ga1 = 0
+ga1 = 0
endin
</CsInstruments>
<CsScore>
-; make sinusoid in table 1
-f 1 0 4096 10 1
-i 1 .5 .1
-i 2 0 3
+i 1 .5 .2 ; short sound
+i 2 0 3 ; echoes
e
</CsScore>
</CsoundSynthesizer>