[gd_scene load_steps=92 format=3 uid="uid://c1g1qxhw1tbht"]

[ext_resource type="Script" path="res://MIDI_Synthesizer.gd" id="1_c0tad"]
[ext_resource type="PackedScene" uid="uid://bfwenw05iu1vf" path="res://note_placement.tscn" id="2_018o3"]
[ext_resource type="AudioStream" uid="uid://bj4rrxmoqflj" path="res://Piano/1.ogg" id="3_oxadg"]
[ext_resource type="AudioStream" uid="uid://ccqxqc2el14ne" path="res://Piano/2.ogg" id="4_xfv58"]
[ext_resource type="AudioStream" uid="uid://3nq6vx7qpbm5" path="res://Piano/3.ogg" id="5_xk0dl"]
[ext_resource type="AudioStream" uid="uid://dxo818q7oxxw0" path="res://Piano/4.ogg" id="6_rwk2m"]
[ext_resource type="AudioStream" uid="uid://7osbcx6q6eoi" path="res://Piano/5.ogg" id="7_3a6cu"]
[ext_resource type="AudioStream" uid="uid://crywslxixhb6" path="res://Piano/6.ogg" id="8_etgnu"]
[ext_resource type="AudioStream" uid="uid://6nv1dmyipw78" path="res://Piano/7.ogg" id="9_335pc"]
[ext_resource type="AudioStream" uid="uid://djf33jqikbqcp" path="res://Piano/8.ogg" id="10_4n2gt"]
[ext_resource type="AudioStream" uid="uid://dcf0on8yghmc" path="res://Piano/9.ogg" id="11_fumae"]
[ext_resource type="AudioStream" uid="uid://bkhxidth5hr6u" path="res://Piano/10.ogg" id="12_gyx3x"]
[ext_resource type="AudioStream" uid="uid://b25om2uxt1hyv" path="res://Piano/11.ogg" id="13_3u8f8"]
[ext_resource type="AudioStream" uid="uid://cb0qnj4waiw21" path="res://Piano/12.ogg" id="14_gc042"]
[ext_resource type="AudioStream" uid="uid://w57x5vepr2go" path="res://Piano/13.ogg" id="15_v5fxp"]
[ext_resource type="AudioStream" uid="uid://8utdkdup6y2g" path="res://Piano/14.ogg" id="16_peqa3"]
[ext_resource type="AudioStream" uid="uid://bg358njo7vrgp" path="res://Piano/15.ogg" id="17_nakxe"]
[ext_resource type="AudioStream" uid="uid://djguplvjml5s" path="res://Piano/16.ogg" id="18_n3aa1"]
[ext_resource type="AudioStream" uid="uid://qavc6dafutah" path="res://Piano/17.ogg" id="19_e40nd"]
[ext_resource type="AudioStream" uid="uid://dy3ma5mhqvd2d" path="res://Piano/18.ogg" id="20_om38r"]
[ext_resource type="AudioStream" uid="uid://bfkuqo3lpnnxx" path="res://Piano/19.ogg" id="21_yg2wo"]
[ext_resource type="AudioStream" uid="uid://bv5h38bb517e6" path="res://Piano/20.ogg" id="22_33nhx"]
[ext_resource type="AudioStream" uid="uid://yuxqt713kc4n" path="res://Piano/21.ogg" id="23_a5w6r"]
[ext_resource type="AudioStream" uid="uid://bpmwwuutiw151" path="res://Piano/22.ogg" id="24_rgbyg"]
[ext_resource type="AudioStream" uid="uid://chpon36t7usoo" path="res://Piano/23.ogg" id="25_a7p1l"]
[ext_resource type="AudioStream" uid="uid://cbfmnshtvn6ka" path="res://Piano/24.ogg" id="26_uskr8"]
[ext_resource type="AudioStream" uid="uid://das6j5exbleex" path="res://Piano/25.ogg" id="27_nsf83"]
[ext_resource type="AudioStream" uid="uid://d2kowhjduwwdw" path="res://Piano/26.ogg" id="28_qqos7"]
[ext_resource type="AudioStream" uid="uid://487hcpwnkoa1" path="res://Piano/27.ogg" id="29_0n1u4"]
[ext_resource type="AudioStream" uid="uid://dsug3o5wxyvpy" path="res://Piano/28.ogg" id="30_h4nak"]
[ext_resource type="AudioStream" uid="uid://c5frk45jo1lxd" path="res://Piano/29.ogg" id="31_31qoh"]
[ext_resource type="AudioStream" uid="uid://bq5xwwa5qvrkp" path="res://Piano/30.ogg" id="32_yte3b"]
[ext_resource type="AudioStream" uid="uid://carthtflxxlb1" path="res://Piano/31.ogg" id="33_gpgmv"]
[ext_resource type="AudioStream" uid="uid://c4nt8qep52xib" path="res://Piano/32.ogg" id="34_pmklu"]
[ext_resource type="AudioStream" uid="uid://vpydgwgurc7c" path="res://Piano/33.ogg" id="35_kw4fu"]
[ext_resource type="AudioStream" uid="uid://bt4yomq3xpsac" path="res://Piano/34.ogg" id="36_qtqga"]
[ext_resource type="AudioStream" uid="uid://lvbb0bux5lvn" path="res://Piano/35.ogg" id="37_kcyln"]
[ext_resource type="AudioStream" uid="uid://dotox74nsv51w" path="res://Piano/36.ogg" id="38_m62cq"]
[ext_resource type="AudioStream" uid="uid://c2n7xvaj3porq" path="res://Piano/37.ogg" id="39_tkyv6"]
[ext_resource type="AudioStream" uid="uid://c4eqg6wy3v8y5" path="res://Piano/38.ogg" id="40_l173r"]
[ext_resource type="AudioStream" uid="uid://68qql08m2kux" path="res://Piano/39.ogg" id="41_twm8a"]
[ext_resource type="AudioStream" uid="uid://crt5b0eg1mn26" path="res://Piano/40.ogg" id="42_kivyj"]
[ext_resource type="AudioStream" uid="uid://dg0obw3wdte5s" path="res://Piano/41.ogg" id="43_dxagj"]
[ext_resource type="AudioStream" uid="uid://cry2re6teqj3n" path="res://Piano/42.ogg" id="44_vww3i"]
[ext_resource type="AudioStream" uid="uid://td2ca3xgxv3g" path="res://Piano/43.ogg" id="45_rtol4"]
[ext_resource type="AudioStream" uid="uid://bk3r4p106kw2e" path="res://Piano/44.ogg" id="46_ot6v4"]
[ext_resource type="AudioStream" uid="uid://cubyjp7qn6l46" path="res://Piano/45.ogg" id="47_6q621"]
[ext_resource type="AudioStream" uid="uid://c31kutpo1f166" path="res://Piano/46.ogg" id="48_07kk1"]
[ext_resource type="AudioStream" uid="uid://cebgc6qcu73dx" path="res://Piano/47.ogg" id="49_asyh3"]
[ext_resource type="AudioStream" uid="uid://brvcek65ve3do" path="res://Piano/48.ogg" id="50_4r1j7"]
[ext_resource type="AudioStream" uid="uid://tljl81nsbhja" path="res://Piano/49.ogg" id="51_2s2gx"]
[ext_resource type="AudioStream" uid="uid://b4qwi2sme1bnk" path="res://Piano/50.ogg" id="52_tcl8r"]
[ext_resource type="AudioStream" uid="uid://b5mj4fb5ddrjl" path="res://Piano/51.ogg" id="53_ovpej"]
[ext_resource type="AudioStream" uid="uid://1jnpr35aojpa" path="res://Piano/52.ogg" id="54_sihq5"]
[ext_resource type="AudioStream" uid="uid://b61t8mqwn2vqy" path="res://Piano/53.ogg" id="55_672dr"]
[ext_resource type="AudioStream" uid="uid://bl416tsyyey0a" path="res://Piano/54.ogg" id="56_wifil"]
[ext_resource type="AudioStream" uid="uid://b0h0iku6j8rjp" path="res://Piano/55.ogg" id="57_4ijsd"]
[ext_resource type="AudioStream" uid="uid://dhy14e2rybhmu" path="res://Piano/56.ogg" id="58_0xire"]
[ext_resource type="AudioStream" uid="uid://truys0f7djti" path="res://Piano/57.ogg" id="59_upsa7"]
[ext_resource type="AudioStream" uid="uid://dovpa0uj2mfgp" path="res://Piano/58.ogg" id="60_2hyas"]
[ext_resource type="AudioStream" uid="uid://d28g0ij07cqd4" path="res://Piano/59.ogg" id="61_m807d"]
[ext_resource type="AudioStream" uid="uid://bfyhb1nm3emuj" path="res://Piano/60.ogg" id="62_k8r2p"]
[ext_resource type="AudioStream" uid="uid://cdo8wg5irqvrm" path="res://Piano/61.ogg" id="63_whaaf"]
[ext_resource type="AudioStream" uid="uid://c3ylj4uhs3waw" path="res://Piano/62.ogg" id="64_ce6jh"]
[ext_resource type="AudioStream" uid="uid://dmqh5uisble4e" path="res://Piano/63.ogg" id="65_el6m1"]
[ext_resource type="AudioStream" uid="uid://dbh2asxwilxv" path="res://Piano/64.ogg" id="66_2phwe"]
[ext_resource type="AudioStream" uid="uid://cg8yejwe8uhsp" path="res://Piano/65.ogg" id="67_1eawd"]
[ext_resource type="AudioStream" uid="uid://r5ww0xookt54" path="res://Piano/66.ogg" id="68_xlxgr"]
[ext_resource type="AudioStream" uid="uid://bcbf1uhwbxkji" path="res://Piano/67.ogg" id="69_3l26h"]
[ext_resource type="AudioStream" uid="uid://twq62f61njur" path="res://Piano/68.ogg" id="70_q461p"]
[ext_resource type="AudioStream" uid="uid://blk46k8j4dowc" path="res://Piano/69.ogg" id="71_b0pha"]
[ext_resource type="AudioStream" uid="uid://csnvq0vqfjsgv" path="res://Piano/70.ogg" id="72_f8tf5"]
[ext_resource type="AudioStream" uid="uid://00tj10eh84ar" path="res://Piano/71.ogg" id="73_626sp"]
[ext_resource type="AudioStream" uid="uid://diqq7hfvetn7k" path="res://Piano/72.ogg" id="74_vqi2w"]
[ext_resource type="AudioStream" uid="uid://cxc3uup0ej5rk" path="res://Piano/73.ogg" id="75_k1yg2"]
[ext_resource type="AudioStream" uid="uid://bq4qs2tthrvjh" path="res://Piano/74.ogg" id="76_i3ff5"]
[ext_resource type="AudioStream" uid="uid://bt3e0nloe4k7w" path="res://Piano/75.ogg" id="77_0riym"]
[ext_resource type="AudioStream" uid="uid://c5bfoud7qg3d1" path="res://Piano/76.ogg" id="78_yxj07"]
[ext_resource type="AudioStream" uid="uid://brd21ij4uxix0" path="res://Piano/77.ogg" id="79_17sse"]
[ext_resource type="AudioStream" uid="uid://bkhhhjijumq4o" path="res://Piano/78.ogg" id="80_vx3nj"]
[ext_resource type="AudioStream" uid="uid://1ot1hb15k5c1" path="res://Piano/79.ogg" id="81_ygxu3"]
[ext_resource type="AudioStream" uid="uid://b2y441tkyyb5i" path="res://Piano/80.ogg" id="82_ya43l"]
[ext_resource type="AudioStream" uid="uid://bc6lf0mk8dqxi" path="res://Piano/81.ogg" id="83_sx43y"]
[ext_resource type="AudioStream" uid="uid://whmjgvc5agw1" path="res://Piano/82.ogg" id="84_wl0eo"]
[ext_resource type="AudioStream" uid="uid://dlh6quclegvk1" path="res://Piano/83.ogg" id="85_fl32m"]
[ext_resource type="AudioStream" uid="uid://b6rks50fkcgt3" path="res://Piano/84.ogg" id="86_54f2e"]
[ext_resource type="AudioStream" uid="uid://dirgkakwsbilk" path="res://Piano/85.ogg" id="87_n6xg6"]
[ext_resource type="AudioStream" uid="uid://d0mpswcpbx4nn" path="res://Piano/86.ogg" id="88_40u84"]
[ext_resource type="AudioStream" uid="uid://bsmhl64nnefne" path="res://Piano/87.ogg" id="89_e233h"]
[ext_resource type="AudioStream" uid="uid://bemtf3ydkevgb" path="res://Piano/88.ogg" id="90_pd303"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_mfd32"]
size = Vector2(6, 40)

[node name="MIDI Controller" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_c0tad")
NoteScene = ExtResource("2_018o3")
Path = NodePath("ScrollContainer/VBoxContainer/Line")
PianoSounds = Array[AudioStreamOggVorbis]([ExtResource("3_oxadg"), ExtResource("4_xfv58"), ExtResource("5_xk0dl"), ExtResource("6_rwk2m"), ExtResource("7_3a6cu"), ExtResource("8_etgnu"), ExtResource("9_335pc"), ExtResource("10_4n2gt"), ExtResource("11_fumae"), ExtResource("12_gyx3x"), ExtResource("13_3u8f8"), ExtResource("14_gc042"), ExtResource("15_v5fxp"), ExtResource("16_peqa3"), ExtResource("17_nakxe"), ExtResource("18_n3aa1"), ExtResource("19_e40nd"), ExtResource("20_om38r"), ExtResource("21_yg2wo"), ExtResource("22_33nhx"), ExtResource("23_a5w6r"), ExtResource("24_rgbyg"), ExtResource("25_a7p1l"), ExtResource("26_uskr8"), ExtResource("27_nsf83"), ExtResource("28_qqos7"), ExtResource("29_0n1u4"), ExtResource("30_h4nak"), ExtResource("31_31qoh"), ExtResource("32_yte3b"), ExtResource("33_gpgmv"), ExtResource("34_pmklu"), ExtResource("35_kw4fu"), ExtResource("36_qtqga"), ExtResource("37_kcyln"), ExtResource("38_m62cq"), ExtResource("39_tkyv6"), ExtResource("40_l173r"), ExtResource("41_twm8a"), ExtResource("42_kivyj"), ExtResource("43_dxagj"), ExtResource("44_vww3i"), ExtResource("45_rtol4"), ExtResource("46_ot6v4"), ExtResource("47_6q621"), ExtResource("48_07kk1"), ExtResource("49_asyh3"), ExtResource("50_4r1j7"), ExtResource("51_2s2gx"), ExtResource("52_tcl8r"), ExtResource("53_ovpej"), ExtResource("54_sihq5"), ExtResource("55_672dr"), ExtResource("56_wifil"), ExtResource("57_4ijsd"), ExtResource("58_0xire"), ExtResource("59_upsa7"), ExtResource("60_2hyas"), ExtResource("61_m807d"), ExtResource("62_k8r2p"), ExtResource("63_whaaf"), ExtResource("64_ce6jh"), ExtResource("65_el6m1"), ExtResource("66_2phwe"), ExtResource("67_1eawd"), ExtResource("68_xlxgr"), ExtResource("69_3l26h"), ExtResource("70_q461p"), ExtResource("71_b0pha"), ExtResource("72_f8tf5"), ExtResource("73_626sp"), ExtResource("74_vqi2w"), ExtResource("75_k1yg2"), ExtResource("76_i3ff5"), ExtResource("77_0riym"), ExtResource("78_yxj07"), ExtResource("79_17sse"), ExtResource("80_vx3nj"), ExtResource("81_ygxu3"), ExtResource("82_ya43l"), ExtResource("83_sx43y"), ExtResource("84_wl0eo"), ExtResource("85_fl32m"), ExtResource("86_54f2e"), ExtResource("87_n6xg6"), ExtResource("88_40u84"), ExtResource("89_e233h"), ExtResource("90_pd303")])
PianoNames = Array[String](["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"])

[node name="Information" type="ColorRect" parent="."]
layout_mode = 0
offset_right = 1280.0
offset_bottom = 120.0
color = Color(0.278431, 0, 0.34902, 1)

[node name="Exit" type="Button" parent="Information"]
layout_mode = 0
offset_left = 1236.0
offset_top = 3.0
offset_right = 1276.0
offset_bottom = 43.0
text = "X"

[node name="BPM Input" type="LineEdit" parent="Information"]
layout_mode = 0
offset_left = 10.0
offset_top = 80.0
offset_right = 130.0
offset_bottom = 111.0
text = "140"
placeholder_text = "BPM"
alignment = 1
max_length = 4

[node name="Measures" type="LineEdit" parent="Information"]
layout_mode = 0
offset_left = 160.0
offset_top = 80.0
offset_right = 280.0
offset_bottom = 111.0
text = "4"
placeholder_text = "Measures"
alignment = 1
max_length = 4

[node name="OptionButton" type="OptionButton" parent="Information"]
layout_mode = 0
offset_left = 40.0
offset_top = 20.0
offset_right = 240.0
offset_bottom = 60.0
item_count = 1
selected = 0
popup/item_0/text = "Piano"
popup/item_0/id = 0

[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 0
offset_top = 120.0
offset_right = 1280.0
offset_bottom = 720.0

[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2

[node name="Line" type="Area2D" parent="ScrollContainer/VBoxContainer"]
collision_layer = 2

[node name="ColorRect" type="ColorRect" parent="ScrollContainer/VBoxContainer/Line"]
offset_left = 5.0
offset_right = 11.0
offset_bottom = 40.0
color = Color(1, 1, 0, 1)

[node name="CollisionShape2D" type="CollisionShape2D" parent="ScrollContainer/VBoxContainer/Line"]
position = Vector2(8, 20)
shape = SubResource("RectangleShape2D_mfd32")

[connection signal="pressed" from="Information/Exit" to="." method="_on_exit_pressed"]
[connection signal="text_changed" from="Information/BPM Input" to="." method="_on_bpm_input_text_changed"]
[connection signal="text_changed" from="Information/Measures" to="." method="_on_measures_text_changed"]
[connection signal="item_selected" from="Information/OptionButton" to="." method="ChangeInstrument"]
[connection signal="area_entered" from="ScrollContainer/VBoxContainer/Line" to="." method="_on_line_area_entered"]
