diff options
author | Felipe Sateler <fsateler@gmail.com> | 2008-03-24 16:39:11 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@gmail.com> | 2008-03-24 16:39:11 -0300 |
commit | 2af72543872544f18b7e3812cb64d9fe5886c47b (patch) | |
tree | e35d9468794be891222d3ddc05e46e2810add952 /examples/filenchnls.csd |
Imported Upstream version 5.08
Diffstat (limited to 'examples/filenchnls.csd')
-rw-r--r-- | examples/filenchnls.csd | 35 |
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> |