summaryrefslogtreecommitdiffstats
path: root/arts/examples/instrument_simple_sin.arts
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /arts/examples/instrument_simple_sin.arts
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/examples/instrument_simple_sin.arts')
-rw-r--r--arts/examples/instrument_simple_sin.arts190
1 files changed, 190 insertions, 0 deletions
diff --git a/arts/examples/instrument_simple_sin.arts b/arts/examples/instrument_simple_sin.arts
new file mode 100644
index 00000000..e2725a8f
--- /dev/null
+++ b/arts/examples/instrument_simple_sin.arts
@@ -0,0 +1,190 @@
+name=instrument_simple_sin
+module=Arts::Synth_FREQUENCY
+{
+ id=4
+ x=1
+ y=2
+ port=frequency
+ {
+ id=5
+ connect_to=29
+ }
+ port=pos
+ {
+ id=6
+ connect_to=8
+ }
+}
+module=Arts::Synth_WAVE_SIN
+{
+ id=7
+ x=2
+ y=3
+ port=pos
+ {
+ id=8
+ connect_to=6
+ }
+ port=outvalue
+ {
+ id=9
+ connect_to=12
+ }
+}
+module=Arts::Synth_ENVELOPE_ADSR
+{
+ id=10
+ x=2
+ y=5
+ port=active
+ {
+ id=11
+ connect_to=31
+ }
+ port=invalue
+ {
+ id=12
+ connect_to=9
+ }
+ port=attack
+ {
+ id=13
+ audio_data=0.03000
+ }
+ port=decay
+ {
+ id=14
+ audio_data=0.10000
+ }
+ port=sustain
+ {
+ id=15
+ audio_data=0.60000
+ }
+ port=release
+ {
+ id=16
+ audio_data=0.20000
+ }
+ port=outvalue
+ {
+ id=17
+ connect_to=23
+ connect_to=24
+ connect_to=26
+ connect_to=27
+ }
+ port=done
+ {
+ id=18
+ connect_to=20
+ connect_to=28
+ }
+}
+structureport
+{
+ name=left
+ x=1
+ y=7
+ position=0
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=26
+ connect_to=17
+ }
+}
+structureport
+{
+ name=right
+ x=3
+ y=7
+ position=1
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=27
+ connect_to=17
+ }
+}
+structureport
+{
+ name=done
+ x=5
+ y=7
+ position=2
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=28
+ connect_to=18
+ }
+}
+structureport
+{
+ name=frequency
+ x=1
+ y=0
+ position=0
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=29
+ connect_to=5
+ }
+}
+structureport
+{
+ name=velocity
+ x=3
+ y=0
+ position=1
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=30
+ }
+}
+structureport
+{
+ name=pressed
+ x=5
+ y=0
+ position=2
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=31
+ connect_to=11
+ }
+}