You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/arts/examples/instrument_tri.arts

349 lines
3.4 KiB

name=instrument_tri
module=Arts::Synth_FREQUENCY
{
id=0
x=1
y=2
port=frequency
{
id=1
connect_to=44
}
port=pos
{
id=2
connect_to=13
}
}
module=Arts::Synth_ENVELOPE_ADSR
{
id=3
x=3
y=10
port=active
{
id=4
connect_to=46
}
port=invalue
{
id=5
connect_to=54
}
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=41
connect_to=42
}
port=done
{
id=11
connect_to=43
}
}
module=Arts::Synth_WAVE_TRI
{
id=12
x=2
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=7
port=invalue
{
id=16
connect_to=28
}
port=frequency
{
id=17
connect_to=36
}
port=outvalue
{
id=18
connect_to=53
}
}
module=Arts::Synth_WAVE_TRI
{
id=19
x=9
y=4
port=pos
{
id=20
connect_to=24
}
port=outvalue
{
id=21
connect_to=27
}
}
module=Arts::Synth_FREQUENCY
{
id=22
x=8
y=3
port=frequency
{
id=23
connect_to=32
}
port=pos
{
id=24
connect_to=20
}
}
module=Arts::Synth_ADD
{
id=25
x=6
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=44
}
port=invalue2
{
id=31
audio_data=1.01000
}
port=outvalue
{
id=32
connect_to=23
}
}
module=Arts::Synth_MUL
{
id=33
x=0
y=7
port=invalue1
{
id=34
connect_to=44
}
port=invalue2
{
id=35
connect_to=40
}
port=outvalue
{
id=36
connect_to=17
}
}
module=Arts::Synth_MUL
{
id=37
x=1
y=5
port=invalue1
{
id=38
audio_data=6.00000
}
port=invalue2
{
id=39
connect_to=45
}
port=outvalue
{
id=40
connect_to=35
}
}
module=Arts::Synth_MUL
{
id=51
x=6
y=8
port=invalue1
{
id=52
audio_data=0.50000
}
port=invalue2
{
id=53
connect_to=18
}
port=outvalue
{
id=54
connect_to=5
}
}
structureport
{
name=left
x=2
y=12
position=0
type
{
direction=input
datatype=audio
conntype=stream
}
data
{
id=41
connect_to=10
}
}
structureport
{
name=right
x=4
y=12
position=1
type
{
direction=input
datatype=audio
conntype=stream
}
data
{
id=42
connect_to=10
}
}
structureport
{
name=done
x=6
y=12
position=2
type
{
direction=input
datatype=audio
conntype=stream
}
data
{
id=43
connect_to=11
}
}
structureport
{
name=frequency
x=2
y=0
position=0
type
{
direction=output
datatype=audio
conntype=stream
}
data
{
id=44
connect_to=1
connect_to=30
connect_to=34
}
}
structureport
{
name=velocity
x=4
y=0
position=1
type
{
direction=output
datatype=audio
conntype=stream
}
data
{
id=45
connect_to=39
}
}
structureport
{
name=pressed
x=6
y=0
position=2
type
{
direction=output
datatype=audio
conntype=stream
}
data
{
id=46
connect_to=4
}
}