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_simple_tri.arts

305 lines
2.9 KiB

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
}
}