summaryrefslogtreecommitdiff
path: root/examples/filenchnls.csd
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@gmail.com>2008-03-24 16:39:11 -0300
committerFelipe Sateler <fsateler@gmail.com>2008-03-24 16:39:11 -0300
commit2af72543872544f18b7e3812cb64d9fe5886c47b (patch)
treee35d9468794be891222d3ddc05e46e2810add952 /examples/filenchnls.csd
Imported Upstream version 5.08
Diffstat (limited to 'examples/filenchnls.csd')
-rw-r--r--examples/filenchnls.csd35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/filenchnls.csd b/examples/filenchnls.csd
new file mode 100644
index 0000000..5b7ff30
--- /dev/null
+++ b/examples/filenchnls.csd
@@ -0,0 +1,35 @@
+<CsoundSynthesizer>
+<CsOptions>
+; Select audio/midi flags here according to platform
+; Audio out Audio in
+-odac -iadc ;;;RT audio I/O
+; For Non-realtime ouput leave only the line below:
+; -o filenchnls.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
+ ; Print out the number of channels in the
+ ; audio file "mary.wav".
+ ichnls filenchnls "mary.wav"
+ print ichnls
+endin
+
+
+</CsInstruments>
+<CsScore>
+
+; Play Instrument #1 for 1 second.
+i 1 0 1
+e
+
+
+</CsScore>
+</CsoundSynthesizer>