summaryrefslogtreecommitdiff
path: root/examples/ftlen.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ftlen.csd')
-rw-r--r--examples/ftlen.csd38
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/ftlen.csd b/examples/ftlen.csd
new file mode 100644
index 0000000..5844458
--- /dev/null
+++ b/examples/ftlen.csd
@@ -0,0 +1,38 @@
+<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 ftlen.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 size of Table #1.
+ ; The size will be the number of points excluding the guard point.
+ ilen = ftlen(1)
+ print ilen
+endin
+
+
+</CsInstruments>
+<CsScore>
+
+; Table #1: Use an audio file, Csound will determine its size.
+f 1 0 0 1 "mary.wav" 0 0 0
+
+; Play Instrument #1 for 1 second.
+i 1 0 1
+e
+
+
+</CsScore>
+</CsoundSynthesizer>