summaryrefslogtreecommitdiffstats
path: root/arts/examples/instrument_square.arts
diff options
context:
space:
mode:
Diffstat (limited to 'arts/examples/instrument_square.arts')
-rw-r--r--arts/examples/instrument_square.arts465
1 files changed, 465 insertions, 0 deletions
diff --git a/arts/examples/instrument_square.arts b/arts/examples/instrument_square.arts
new file mode 100644
index 00000000..13d1e6ed
--- /dev/null
+++ b/arts/examples/instrument_square.arts
@@ -0,0 +1,465 @@
+name=instrument_square
+module=Arts::Synth_FREQUENCY
+{
+ id=0
+ x=1
+ y=2
+ port=frequency
+ {
+ id=1
+ connect_to=63
+ }
+ port=pos
+ {
+ id=2
+ connect_to=13
+ }
+}
+module=Arts::Synth_ENVELOPE_ADSR
+{
+ id=3
+ x=0
+ y=9
+ port=active
+ {
+ id=4
+ connect_to=65
+ }
+ port=invalue
+ {
+ id=5
+ connect_to=76
+ }
+ 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.30000
+ }
+ port=outvalue
+ {
+ id=10
+ connect_to=66
+ connect_to=67
+ }
+ port=done
+ {
+ id=11
+ connect_to=68
+ }
+}
+module=Arts::Synth_WAVE_SQUARE
+{
+ id=12
+ x=1
+ y=4
+ port=pos
+ {
+ id=13
+ connect_to=2
+ }
+ port=outvalue
+ {
+ id=14
+ connect_to=16
+ connect_to=21
+ connect_to=28
+ connect_to=52
+ connect_to=56
+ }
+}
+module=Arts::Synth_ADD
+{
+ id=15
+ x=6
+ y=6
+ port=invalue1
+ {
+ id=16
+ connect_to=14
+ }
+ port=invalue2
+ {
+ id=17
+ connect_to=38
+ }
+ port=outvalue
+ {
+ id=18
+ connect_to=24
+ }
+}
+module=Arts::Synth_ADD
+{
+ id=19
+ x=15
+ y=6
+ port=invalue1
+ {
+ id=20
+ connect_to=26
+ }
+ port=invalue2
+ {
+ id=21
+ connect_to=14
+ }
+ port=outvalue
+ {
+ id=22
+ connect_to=48
+ }
+}
+module=Arts::Synth_ADD
+{
+ id=23
+ x=10
+ y=6
+ port=invalue1
+ {
+ id=24
+ connect_to=18
+ }
+ port=invalue2
+ {
+ id=25
+ connect_to=42
+ }
+ port=outvalue
+ {
+ id=26
+ connect_to=20
+ }
+}
+module=Arts::Synth_MUL
+{
+ id=27
+ x=6
+ y=2
+ port=invalue1
+ {
+ id=28
+ connect_to=14
+ }
+ port=invalue2
+ {
+ id=29
+ audio_data=2.00000
+ }
+ port=outvalue
+ {
+ id=30
+ connect_to=32
+ connect_to=36
+ }
+}
+module=Arts::Synth_MUL
+{
+ id=31
+ x=10
+ y=2
+ port=invalue1
+ {
+ id=32
+ connect_to=30
+ }
+ port=invalue2
+ {
+ id=33
+ audio_data=16.00000
+ }
+ port=outvalue
+ {
+ id=34
+ connect_to=40
+ }
+}
+module=Arts::Synth_SHELVE_CUTOFF
+{
+ id=35
+ x=6
+ y=4
+ port=invalue
+ {
+ id=36
+ connect_to=30
+ }
+ port=frequency
+ {
+ id=37
+ audio_data=6000.00000
+ }
+ port=outvalue
+ {
+ id=38
+ connect_to=17
+ }
+}
+module=Arts::Synth_SHELVE_CUTOFF
+{
+ id=39
+ x=10
+ y=4
+ port=invalue
+ {
+ id=40
+ connect_to=34
+ }
+ port=frequency
+ {
+ id=41
+ audio_data=2000.00000
+ }
+ port=outvalue
+ {
+ id=42
+ connect_to=25
+ }
+}
+module=Arts::Synth_SHELVE_CUTOFF
+{
+ id=43
+ x=12
+ y=9
+ port=invalue
+ {
+ id=44
+ connect_to=54
+ }
+ port=frequency
+ {
+ id=45
+ audio_data=8000.00000
+ }
+ port=outvalue
+ {
+ id=46
+ connect_to=60
+ }
+}
+module=Arts::Synth_MUL
+{
+ id=47
+ x=16
+ y=7
+ port=invalue1
+ {
+ id=48
+ connect_to=22
+ }
+ port=invalue2
+ {
+ id=49
+ audio_data=0.10000
+ }
+ port=outvalue
+ {
+ id=50
+ connect_to=53
+ }
+}
+module=Arts::Synth_ADD
+{
+ id=51
+ x=16
+ y=9
+ port=invalue1
+ {
+ id=52
+ connect_to=14
+ }
+ port=invalue2
+ {
+ id=53
+ connect_to=50
+ }
+ port=outvalue
+ {
+ id=54
+ connect_to=44
+ }
+}
+module=Arts::Synth_ADD
+{
+ id=55
+ x=8
+ y=11
+ port=invalue1
+ {
+ id=56
+ connect_to=14
+ }
+ port=invalue2
+ {
+ id=57
+ connect_to=62
+ }
+ port=outvalue
+ {
+ id=58
+ connect_to=75
+ }
+}
+module=Arts::Synth_MUL
+{
+ id=59
+ x=8
+ y=9
+ port=invalue1
+ {
+ id=60
+ connect_to=46
+ }
+ port=invalue2
+ {
+ id=61
+ audio_data=0.50000
+ }
+ port=outvalue
+ {
+ id=62
+ connect_to=57
+ }
+}
+module=Arts::Synth_MUL
+{
+ id=73
+ x=0
+ y=7
+ port=invalue1
+ {
+ id=74
+ audio_data=0.30000
+ }
+ port=invalue2
+ {
+ id=75
+ connect_to=58
+ }
+ port=outvalue
+ {
+ id=76
+ connect_to=5
+ }
+}
+structureport
+{
+ name=frequency
+ x=2
+ y=0
+ position=1
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=63
+ connect_to=1
+ }
+}
+structureport
+{
+ name=velocity
+ x=4
+ y=0
+ position=2
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=64
+ }
+}
+structureport
+{
+ name=pressed
+ x=1
+ y=8
+ position=3
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=65
+ connect_to=4
+ }
+}
+structureport
+{
+ name=left
+ x=2
+ y=11
+ position=0
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=66
+ connect_to=10
+ }
+}
+structureport
+{
+ name=right
+ x=4
+ y=11
+ position=1
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=67
+ connect_to=10
+ }
+}
+structureport
+{
+ name=done
+ x=6
+ y=11
+ position=2
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=68
+ connect_to=11
+ }
+}