summaryrefslogtreecommitdiffstats
path: root/arts/examples/instrument_fm_horn.arts
diff options
context:
space:
mode:
Diffstat (limited to 'arts/examples/instrument_fm_horn.arts')
-rw-r--r--arts/examples/instrument_fm_horn.arts301
1 files changed, 301 insertions, 0 deletions
diff --git a/arts/examples/instrument_fm_horn.arts b/arts/examples/instrument_fm_horn.arts
new file mode 100644
index 00000000..698c7792
--- /dev/null
+++ b/arts/examples/instrument_fm_horn.arts
@@ -0,0 +1,301 @@
+name=instrument_fm_horn
+module=Arts::Synth_FM_SOURCE
+{
+ id=0
+ x=2
+ y=7
+ port=frequency
+ {
+ id=1
+ connect_to=47
+ }
+ port=modulator
+ {
+ id=2
+ connect_to=22
+ }
+ port=modlevel
+ {
+ id=3
+ audio_data=0.30000
+ }
+ port=pos
+ {
+ id=4
+ connect_to=6
+ }
+}
+module=Arts::Synth_WAVE_SIN
+{
+ id=5
+ x=3
+ y=8
+ port=pos
+ {
+ id=6
+ connect_to=4
+ }
+ port=outvalue
+ {
+ id=7
+ connect_to=16
+ connect_to=33
+ }
+}
+module=Arts::Synth_FREQUENCY
+{
+ id=8
+ x=2
+ y=4
+ port=frequency
+ {
+ id=9
+ connect_to=45
+ }
+ port=pos
+ {
+ id=10
+ connect_to=12
+ }
+}
+module=Arts::Synth_WAVE_SIN
+{
+ id=11
+ x=3
+ y=5
+ port=pos
+ {
+ id=12
+ connect_to=10
+ }
+ port=outvalue
+ {
+ id=13
+ connect_to=19
+ }
+}
+module=Arts::Synth_CDELAY
+{
+ id=14
+ x=7
+ y=8
+ port=time
+ {
+ id=15
+ }
+ port=invalue
+ {
+ id=16
+ connect_to=7
+ }
+ port=outvalue
+ {
+ id=17
+ connect_to=20
+ }
+}
+module=Arts::Synth_XFADE
+{
+ id=18
+ x=7
+ y=6
+ port=invalue1
+ {
+ id=19
+ connect_to=13
+ }
+ port=invalue2
+ {
+ id=20
+ connect_to=17
+ }
+ port=percentage
+ {
+ id=21
+ audio_data=0.40000
+ }
+ port=outvalue
+ {
+ id=22
+ connect_to=2
+ }
+}
+module=Arts::Synth_ENVELOPE_ADSR
+{
+ id=31
+ x=3
+ y=11
+ port=active
+ {
+ id=32
+ connect_to=49
+ }
+ port=invalue
+ {
+ id=33
+ connect_to=7
+ }
+ port=attack
+ {
+ id=34
+ audio_data=0.10000
+ }
+ port=decay
+ {
+ id=35
+ audio_data=0.10000
+ }
+ port=sustain
+ {
+ id=36
+ audio_data=0.70000
+ }
+ port=release
+ {
+ id=37
+ audio_data=0.10000
+ }
+ port=outvalue
+ {
+ id=38
+ connect_to=29
+ connect_to=30
+ connect_to=50
+ connect_to=51
+ }
+ port=done
+ {
+ id=39
+ connect_to=41
+ connect_to=52
+ }
+}
+module=Arts::Synth_MUL
+{
+ id=42
+ x=1
+ y=3
+ port=invalue1
+ {
+ id=43
+ connect_to=47
+ }
+ port=invalue2
+ {
+ id=44
+ audio_data=1.01000
+ }
+ port=outvalue
+ {
+ id=45
+ connect_to=9
+ }
+}
+structureport
+{
+ name=frequency
+ x=1
+ y=0
+ position=1
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=47
+ connect_to=43
+ connect_to=1
+ }
+}
+structureport
+{
+ name=velocity
+ x=3
+ y=0
+ position=2
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=48
+ }
+}
+structureport
+{
+ name=pressed
+ x=5
+ y=0
+ position=3
+ type
+ {
+ direction=output
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=49
+ connect_to=32
+ }
+}
+structureport
+{
+ name=left
+ x=1
+ y=13
+ position=0
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=50
+ connect_to=38
+ }
+}
+structureport
+{
+ name=right
+ x=3
+ y=13
+ position=1
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=51
+ connect_to=38
+ }
+}
+structureport
+{
+ name=done
+ x=5
+ y=13
+ position=2
+ type
+ {
+ direction=input
+ datatype=audio
+ conntype=stream
+ }
+ data
+ {
+ id=52
+ connect_to=39
+ }
+}