summaryrefslogtreecommitdiffstats
path: root/arts/examples/example_adsr.arts
diff options
context:
space:
mode:
Diffstat (limited to 'arts/examples/example_adsr.arts')
-rw-r--r--arts/examples/example_adsr.arts137
1 files changed, 137 insertions, 0 deletions
diff --git a/arts/examples/example_adsr.arts b/arts/examples/example_adsr.arts
new file mode 100644
index 00000000..b6a2cdff
--- /dev/null
+++ b/arts/examples/example_adsr.arts
@@ -0,0 +1,137 @@
+name=example_adsr
+module=Arts::Synth_AMAN_PLAY
+{
+ id=0
+ x=1
+ y=7
+ port=title
+ {
+ id=1
+ string_data=Adsr
+ }
+ port=autoRestoreID
+ {
+ id=2
+ string_data=Demo2
+ }
+ port=left
+ {
+ id=3
+ connect_to=21
+ }
+ port=right
+ {
+ id=4
+ connect_to=21
+ }
+}
+module=Arts::Synth_WAVE_SIN
+{
+ id=5
+ x=5
+ y=3
+ port=pos
+ {
+ id=6
+ connect_to=10
+ }
+ port=outvalue
+ {
+ id=7
+ connect_to=16
+ }
+}
+module=Arts::Synth_FREQUENCY
+{
+ id=8
+ x=5
+ y=1
+ port=frequency
+ {
+ id=9
+ audio_data=440.00000
+ }
+ port=pos
+ {
+ id=10
+ connect_to=6
+ }
+}
+module=Arts::Synth_FREQUENCY
+{
+ id=11
+ x=1
+ y=1
+ port=frequency
+ {
+ id=12
+ audio_data=1.00000
+ }
+ port=pos
+ {
+ id=13
+ connect_to=24
+ }
+}
+module=Arts::Synth_ENVELOPE_ADSR
+{
+ id=14
+ x=2
+ y=5
+ port=active
+ {
+ id=15
+ connect_to=25
+ }
+ port=invalue
+ {
+ id=16
+ connect_to=7
+ }
+ port=attack
+ {
+ id=17
+ audio_data=0.10000
+ }
+ port=decay
+ {
+ id=18
+ audio_data=0.10000
+ }
+ port=sustain
+ {
+ id=19
+ audio_data=0.50000
+ }
+ port=release
+ {
+ id=20
+ audio_data=0.10000
+ }
+ port=outvalue
+ {
+ id=21
+ connect_to=3
+ connect_to=4
+ }
+ port=done
+ {
+ id=22
+ }
+}
+module=Arts::Synth_WAVE_SQUARE
+{
+ id=23
+ x=1
+ y=3
+ port=pos
+ {
+ id=24
+ connect_to=13
+ }
+ port=outvalue
+ {
+ id=25
+ connect_to=15
+ }
+}