aboutsummaryrefslogtreecommitdiff
path: root/examples/rawread.csd
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2022-12-30 20:43:17 +0000
committerRichard Knight <q@1bpm.net>2022-12-30 20:43:17 +0000
commit510d32100f523a901d960013c50d481bf63d21df (patch)
treec6a5a782b8b2c320e487776a02a7e70b221ad914 /examples/rawread.csd
parent4f73db87c653ccffcb3cddddaf003b9d09546122 (diff)
downloadcsound-datacore-510d32100f523a901d960013c50d481bf63d21df.tar.gz
csound-datacore-510d32100f523a901d960013c50d481bf63d21df.tar.bz2
csound-datacore-510d32100f523a901d960013c50d481bf63d21df.zip
fix permissions on reading and mempsname
Diffstat (limited to 'examples/rawread.csd')
-rw-r--r--examples/rawread.csd35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/rawread.csd b/examples/rawread.csd
new file mode 100644
index 0000000..005a558
--- /dev/null
+++ b/examples/rawread.csd
@@ -0,0 +1,35 @@
+<CsoundSynthesizer>
+<CsOptions>
+-odac
+</CsOptions>
+<CsInstruments>
+sr = 44100
+kr = 4410
+nchnls = 2
+0dbfs = 1
+seed 0
+
+
+instr 1
+ a1 rawread "/usr/bin/zip"
+ a1 *= 0.1
+ outs a1, a1
+endin
+
+instr 2
+ aL, aR rawread "/usr/bin/zip", 1
+ outs aL*0.1, aR*0.1
+endin
+
+instr 3
+ ifn rawreadtable "/usr/bin/zip"
+ a1 loscil 0.1, 1, ifn, 1
+
+ outs a1, a1
+endin
+
+</CsInstruments>
+<CsScore>
+i3 0 60
+</CsScore>
+</CsoundSynthesizer>