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

191 lines
1.9 KiB

name=instrument_simple_square
module=Arts::Synth_FREQUENCY
{
id=4
x=1
y=2
port=frequency
{
id=5
connect_to=29
}
port=pos
{
id=6
connect_to=23
}
}
module=Arts::Synth_ENVELOPE_ADSR
{
id=7
x=3
y=6
port=active
{
id=8
connect_to=31
}
port=invalue
{
id=9
connect_to=24
}
port=attack
{
id=10
audio_data=0.03000
}
port=decay
{
id=11
audio_data=0.10000
}
port=sustain
{
id=12
audio_data=0.60000
}
port=release
{
id=13
audio_data=0.20000
}
port=outvalue
{
id=14
connect_to=20
connect_to=21
connect_to=26
connect_to=27
}
port=done
{
id=15
connect_to=17
connect_to=28
}
}
module=Arts::Synth_WAVE_SQUARE
{
id=22
x=1
y=4
port=pos
{
id=23
connect_to=6
}
port=outvalue
{
id=24
connect_to=9
}
}
structureport
{
name=left
x=1
y=8
position=0
type
{
direction=input
datatype=audio
conntype=stream
}
data
{
id=26
connect_to=14
}
}
structureport
{
name=right
x=3
y=8
position=1
type
{
direction=input
datatype=audio
conntype=stream
}
data
{
id=27
connect_to=14
}
}
structureport
{
name=done
x=5
y=8
position=2
type
{
direction=input
datatype=audio
conntype=stream
}
data
{
id=28
connect_to=15
}
}
structureport
{
name=frequency
x=1
y=0
position=0
type
{
direction=output
datatype=audio
conntype=stream
}
data
{
id=29
connect_to=5
}
}
structureport
{
name=velocity
x=3
y=0
position=1
type
{
direction=output
datatype=audio
conntype=stream
}
data
{
id=30
}
}
structureport
{
name=pressed
x=5
y=0
position=2
type
{
direction=output
datatype=audio
conntype=stream
}
data
{
id=31
connect_to=8
}
}