aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2025-03-20 00:52:10 +0000
committerRichard <q@1bpm.net>2025-03-20 00:52:10 +0000
commit1e265f0f65a453b670e07c8ac04ca46e1f6871c8 (patch)
treee52b34a5a58b46163c1de2862bd275f47fae153d
parent0b65c17a4a94b71f8e3c628fa5721c5aa154dae0 (diff)
downloadcsound-shout-1e265f0f65a453b670e07c8ac04ca46e1f6871c8.tar.gz
csound-shout-1e265f0f65a453b670e07c8ac04ca46e1f6871c8.tar.bz2
csound-shout-1e265f0f65a453b670e07c8ac04ca46e1f6871c8.zip
updated example
-rw-r--r--examples/example.csd10
-rw-r--r--examples/example2.csd38
2 files changed, 5 insertions, 43 deletions
diff --git a/examples/example.csd b/examples/example.csd
index eebcf51..f2c179b 100644
--- a/examples/example.csd
+++ b/examples/example.csd
@@ -3,26 +3,26 @@
-odac
</CsOptions>
<CsInstruments>
-sr = 48000
-ksmps = 64
+sr = 44100
+ksmps = 128
nchnls = 2
0dbfs = 1
instr run
- ishout shoutinit "10.0.0.1", 8000, "", "stream_my_butt", "/csound.mp3"
+ ishout shoutinit "shoutcast.server.net", 8000, "username", "password", "/csound.mp3"
shoutseturl ishout, "https://csound.1bpm.net"
shoutsetgenre ishout, "Csound music"
shoutsetdescription ishout, "Live streaming from within Csound"
shoutsetname ishout, "Csound stream"
shoutopen ishout
- shoutsetmeta ishout, "song", "Random"
+ shoutsetmeta ishout, "song", "A Csound sound"
a1 = oscil(0.9, abs:k(oscil:k(220, 1)) + 220)
shoutsend ishout, a1, a1
endin
</CsInstruments>
<CsScore>
-i"run" 0 60
+i"run" 0 240
</CsScore>
</CsoundSynthesizer>
diff --git a/examples/example2.csd b/examples/example2.csd
deleted file mode 100644
index 17af34c..0000000
--- a/examples/example2.csd
+++ /dev/null
@@ -1,38 +0,0 @@
-<CsoundSynthesizer>
-<CsOptions>
--odac
-</CsOptions>
-<CsInstruments>
-sr = 44100
-ksmps = 64
-nchnls = 2
-0dbfs = 1
-
-gifnhello = -1
-gishout init -1
-
-instr oscil
- a1 = oscil(0.9, abs:k(oscil:k(220, 1)) + 220)
- shoutsend gishout, a1, a1
- schedule "hello", p3, 5
-endin
-
-instr hello
- a1 loscil 1, 1, gifnhello, 1
- shoutsend gishout, a1, a1
- schedule "oscil", p3, 5
-endin
-
-instr run
- gishout shoutinit "10.0.0.1", 8000, "", "stream_my_butt", "/csound.mp3"
- gifnhello ftts "hello from sea sound", 440
- shoutopen gishout
- schedule "hello", 0, 5
-endin
-
-</CsInstruments>
-<CsScore>
-i"run" 0 36000
-</CsScore>
-</CsoundSynthesizer>
-