summaryrefslogtreecommitdiffstats
path: root/arts/examples/instrument_simple_square.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_square.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_square.arts')
-rw-r--r--arts/examples/instrument_simple_square.arts190
1 files changed, 190 insertions, 0 deletions
diff --git a/arts/examples/instrument_simple_square.arts b/arts/examples/instrument_simple_square.arts
new file mode 100644
index 00000000..d82297e3
--- /dev/null
+++ b/arts/examples/instrument_simple_square.arts
@@ -0,0 +1,190 @@
+name=instrument_simple_square
+module=Arts::Synth_FREQUENCY
+{
+ id=4
+ x=1
+ y=2
+ port=frequency
+ {
+ id=5
+ connect_to=29
+ }
+ port=pos
+ {
+ id=6
+ connect_to=23
+ }
+}
+module=Arts::Synth_ENVELOPE_ADSR
+{
+ id=7
+ x=3
+ y=6
+ port=active
+ {
+ id=8
+ connect_to=31
+ }
+ port=invalue
+ {
+ id=9
+ connect_to=24
+ }
+ port=attack
+ {
+ id=10
+ audio_data=0.03000
+ }
+ port=decay
+ {
+ id=11
+ audio_data=0.10000
+ }
+ port=sustain
+ {
+ id=12
+ audio_data=0.60000
+ }
+ port=release
+ {
+ id=13
+ audio_data=0.20000
+ }
+ port=outvalue
+ {
+ id=14
+ connect_to=20
+ connect_to=21
+ connect_to=26
+ connect_to=27
+ }
+ port=done
+ {
+ id=15
+ connect_to=17
+ connect_to=28
+ }
+}
+module=Arts::Synth_WAVE_SQUARE
+{
+ id=22
+ x=1
+ y=4
+ port=pos
+ {
+ id=23
+ connect_to=6
+ }
+ port=outvalue
+ {
+ id=24
+ connect_to=9
+ }
+}
+structureport
+{
+ name=left
+ x=1
+ y=8
+ position=0
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=26
+ connect_to=14
+ }
+}
+structureport
+{
+ name=right
+ x=3
+ y=8
+ position=1
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=27
+ connect_to=14
+ }
+}
+structureport
+{
+ name=done
+ x=5
+ y=8
+ position=2
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=28
+ connect_to=15
+ }
+}
+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=8
+ }
+}