summaryrefslogtreecommitdiff
path: root/klangfarb/Main.tscn
blob: f83e045375ae18abe6e8d881055c525fec3aa89c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[gd_scene load_steps=8 format=2]

[ext_resource path="res://assets/bell.jpeg" type="Texture" id=1]
[ext_resource path="res://main.gd" type="Script" id=2]
[ext_resource path="res://Power.gd" type="Script" id=3]
[ext_resource path="res://Duration.gd" type="Script" id=4]
[ext_resource path="res://assets/logo.png" type="Texture" id=5]

[sub_resource type="AudioStreamGenerator" id=1]

[sub_resource type="AtlasTexture" id=2]

[node name="Audio" type="AudioStreamPlayer"]
stream = SubResource( 1 )
volume_db = -27.491
script = ExtResource( 2 )
play_instrument = true
continuous = false
duration = 2600
decay = 1000
release = 500
fm_index = 100.0

[node name="bell" type="Sprite" parent="."]
position = Vector2( 509.571, 302.973 )
scale = Vector2( 0.679757, 0.442065 )
texture = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}

[node name="Control" type="CheckButton" parent="."]
show_behind_parent = true
margin_left = 793.041
margin_top = 103.156
margin_right = 870.041
margin_bottom = 143.156
icon = SubResource( 2 )
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="VSlider" type="VSlider" parent="."]
anchor_left = 0.069
anchor_right = 0.201
anchor_bottom = 0.986
margin_left = -61.656
margin_top = 2.0
margin_right = -161.824
margin_bottom = 7.39996
rect_scale = Vector2( 3, 1 )
min_value = 100.0
max_value = 10000.0
step = 100.0
value = 100.0
script = ExtResource( 4 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}

[node name="VSlider2" type="VSlider" parent="."]
anchor_left = 0.069
anchor_right = 0.201
anchor_bottom = 0.986
margin_left = 826.84
margin_top = -2.49493
margin_right = 726.672
margin_bottom = 2.90503
rect_scale = Vector2( 3, 1 )
min_value = 20.0
max_value = 8000.0
step = 5.0
value = 100.0
script = ExtResource( 4 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}

[node name="Control2" type="Control" parent="."]
margin_left = 135.502
margin_top = 148.729
margin_right = 893.502
margin_bottom = 595.729
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}

[node name="logo" type="Sprite" parent="."]
position = Vector2( 517.062, 56.5018 )
texture = ExtResource( 5 )

[connection signal="value_changed" from="VSlider" to="." method="_on_duration_value_changed"]
[connection signal="value_changed" from="VSlider2" to="." method="_on_pitch_value_changed"]
[connection signal="gui_input" from="Control2" to="." method="_on_bell_click"]