summaryrefslogtreecommitdiff
path: root/examples/dcblock2.csd
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2011-07-26 23:02:40 -0400
committerFelipe Sateler <fsateler@debian.org>2011-07-26 23:02:40 -0400
commit3a91171181113761a14bcc36a086a8dda144b77b (patch)
tree7affbde923b0131e3e954519a8afb24cd408982d /examples/dcblock2.csd
parente99de1fa9e7b72351523a958cb2a13557884f0a4 (diff)
Imported Upstream version 5.13~dfsg
Diffstat (limited to 'examples/dcblock2.csd')
-rwxr-xr-xexamples/dcblock2.csd39
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/dcblock2.csd b/examples/dcblock2.csd
new file mode 100755
index 0000000..71a69f3
--- /dev/null
+++ b/examples/dcblock2.csd
@@ -0,0 +1,39 @@
+<CsoundSynthesizer>
+<CsOptions>
+; Select audio/midi flags here according to platform
+-odac ;;;RT audio out
+;-iadc ;;;uncomment -iadc if RT audio input is needed too
+; For Non-realtime ouput leave only the line below:
+;-o dcblock2.wav -W ;;; for file output any platform
+</CsOptions>
+<CsInstruments>
+
+sr = 44100
+ksmps = 32
+nchnls = 2
+
+instr 1 ;add DC to "beats.wav"
+
+asig soundin "beats.wav"
+asig = asig+5000 ;adds DC of 5000
+ outs asig, asig
+endin
+
+instr 2 ;dcblock audio
+
+asig soundin "beats.wav"
+asig = asig+5000 ;adds DC
+adc dcblock2 asig ;remove DC again
+ outs adc, adc
+
+endin
+
+</CsInstruments>
+<CsScore>
+
+i 1 0 2
+i 2 2 2
+e
+
+</CsScore>
+</CsoundSynthesizer>