diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /arts/examples/instrument_simple_tri.arts | |
download | tdemultimedia-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_tri.arts')
-rw-r--r-- | arts/examples/instrument_simple_tri.arts | 304 |
1 files changed, 304 insertions, 0 deletions
diff --git a/arts/examples/instrument_simple_tri.arts b/arts/examples/instrument_simple_tri.arts new file mode 100644 index 00000000..05453b8b --- /dev/null +++ b/arts/examples/instrument_simple_tri.arts @@ -0,0 +1,304 @@ +name=instrument_simple_tri +module=Arts::Synth_FREQUENCY +{ + id=0 + x=0 + y=2 + port=frequency + { + id=1 + connect_to=36 + } + port=pos + { + id=2 + connect_to=13 + } +} +module=Arts::Synth_ENVELOPE_ADSR +{ + id=3 + x=4 + y=9 + port=active + { + id=4 + connect_to=38 + } + port=invalue + { + id=5 + connect_to=46 + } + port=attack + { + id=6 + audio_data=0.03000 + } + port=decay + { + id=7 + audio_data=0.10000 + } + port=sustain + { + id=8 + audio_data=0.60000 + } + port=release + { + id=9 + audio_data=0.20000 + } + port=outvalue + { + id=10 + connect_to=33 + connect_to=34 + } + port=done + { + id=11 + connect_to=35 + } +} +module=Arts::Synth_WAVE_TRI +{ + id=12 + x=1 + y=3 + port=pos + { + id=13 + connect_to=2 + } + port=outvalue + { + id=14 + connect_to=26 + } +} +module=Arts::Synth_SHELVE_CUTOFF +{ + id=15 + x=6 + y=6 + port=invalue + { + id=16 + connect_to=28 + } + port=frequency + { + id=17 + audio_data=4000.00000 + } + port=outvalue + { + id=18 + connect_to=44 + } +} +module=Arts::Synth_WAVE_TRI +{ + id=19 + x=9 + y=3 + port=pos + { + id=20 + connect_to=24 + } + port=outvalue + { + id=21 + connect_to=27 + } +} +module=Arts::Synth_FREQUENCY +{ + id=22 + x=8 + y=2 + port=frequency + { + id=23 + connect_to=32 + } + port=pos + { + id=24 + connect_to=20 + } +} +module=Arts::Synth_ADD +{ + id=25 + x=5 + y=5 + port=invalue1 + { + id=26 + connect_to=14 + } + port=invalue2 + { + id=27 + connect_to=21 + } + port=outvalue + { + id=28 + connect_to=16 + } +} +module=Arts::Synth_MUL +{ + id=29 + x=7 + y=1 + port=invalue1 + { + id=30 + connect_to=36 + } + port=invalue2 + { + id=31 + audio_data=1.01000 + } + port=outvalue + { + id=32 + connect_to=23 + } +} +module=Arts::Synth_MUL +{ + id=43 + x=7 + y=7 + port=invalue1 + { + id=44 + connect_to=18 + } + port=invalue2 + { + id=45 + audio_data=0.50000 + } + port=outvalue + { + id=46 + connect_to=5 + } +} +structureport +{ + name=left + x=1 + y=12 + position=0 + type + { + direction=input + datatype=audio + conntype=stream + } + data + { + id=33 + connect_to=10 + } +} +structureport +{ + name=right + x=3 + y=12 + position=1 + type + { + direction=input + datatype=audio + conntype=stream + } + data + { + id=34 + connect_to=10 + } +} +structureport +{ + name=done + x=5 + y=12 + position=2 + type + { + direction=input + datatype=audio + conntype=stream + } + data + { + id=35 + connect_to=11 + } +} +structureport +{ + name=frequency + x=1 + y=0 + position=0 + type + { + direction=output + datatype=audio + conntype=stream + } + data + { + id=36 + connect_to=1 + connect_to=30 + } +} +structureport +{ + name=velocity + x=3 + y=0 + position=1 + type + { + direction=output + datatype=audio + conntype=stream + } + data + { + id=37 + } +} +structureport +{ + name=pressed + x=5 + y=0 + position=2 + type + { + direction=output + datatype=audio + conntype=stream + } + data + { + id=38 + connect_to=4 + } +} |