aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2022-09-04 00:44:55 +0100
committerRichard <q@1bpm.net>2022-09-04 00:44:55 +0100
commite188fb2e7e180d8309188b37152728f7ec459bb7 (patch)
tree38aa01c4806a7459fda75c44dde84a55ec0468a2 /examples
parent1d055261b4144dbf86b2658437015b15d4dd9bff (diff)
downloadcsound-json-e188fb2e7e180d8309188b37152728f7ec459bb7.tar.gz
csound-json-e188fb2e7e180d8309188b37152728f7ec459bb7.tar.bz2
csound-json-e188fb2e7e180d8309188b37152728f7ec459bb7.zip
example update
Diffstat (limited to 'examples')
-rw-r--r--examples/example5.csd11
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/example5.csd b/examples/example5.csd
index d30629b..4ba6d07 100644
--- a/examples/example5.csd
+++ b/examples/example5.csd
@@ -1,7 +1,10 @@
/*
csound-json example 5
- fill JSON object with various data at init time
+ fill JSON object with various data at k-rate and init time
+ add to an object loaded from disk
+ add f-table to JSON
+ print and save to disk
*/
<CsoundSynthesizer>
@@ -34,10 +37,16 @@ endop
instr boot
+
+ ; empty objects
iJson1 jsoninit
iJson2 jsoninit
+
+ ; fill with data
schedule "run1", 0, 5, iJson1
schedule "run2", 5, 5, iJson2
+
+ ; combine objects
schedule "process", 10, 1, iJson1, iJson2
turnoff
endin