[gd_scene load_steps=2 format=3 uid="uid://dyfxgme5wwxp1"]

[ext_resource type="Script" uid="uid://cuk68115uw1ge" path="res://scenes/Nodes/convert_time.gd" id="1_44i0u"]

[node name="convert_time" type="GraphNode"]
offset_left = 1982.0
offset_top = 34.0
offset_right = 2365.0
offset_bottom = 330.0
tooltip_text = "Converts between various units of time"
title = "Convert Time Units"
slot/0/left_enabled = false
slot/0/left_type = 1
slot/0/left_color = Color(0, 0, 0, 1)
slot/0/left_icon = null
slot/0/right_enabled = false
slot/0/right_type = 1
slot/0/right_color = Color(0, 0, 0, 1)
slot/0/right_icon = null
slot/0/draw_stylebox = true
script = ExtResource("1_44i0u")
metadata/command = "convert_time"
metadata/utility = true
metadata/input = false

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

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

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "Milliseconds"

[node name="MsEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time in ms"

[node name="MarginContainer5" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2

[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "Seconds"

[node name="SEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time in seconds"

[node name="MarginContainer4" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2

[node name="HBoxContainer7" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer7"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "1/4 Notes"

[node name="CrotchetEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer7"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time as a number of 1/4 notes at the given BPM"

[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer7"]
layout_mode = 2
text = "at"

[node name="BPMEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer7"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The BPM to calculate 1/4 notes at"

[node name="MarginContainer6" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2

[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "Hertz"

[node name="HzEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time in Hz"

[node name="MarginContainer3" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2

[node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "MIDI Note"

[node name="MIDIEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer4"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time as a MIDI note number"

[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2

[node name="HBoxContainer5" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer5"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "Samples"

[node name="SampleNoEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer5"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time as a number of samples at the given sample rate"

[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer5"]
layout_mode = 2
text = "at"

[node name="SampleRateEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer5"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The sample rate to calculate samples at"

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2

[node name="HBoxContainer6" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer6"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "% of Time (s)"

[node name="PercentEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer6"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time as a percentage of the given time in seconds"

[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer6"]
layout_mode = 2
text = "of"

[node name="LengthEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer6"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "The length of time in seconds to a percentage of"

[connection signal="focus_exited" from="VBoxContainer/HBoxContainer/MsEdit" to="." method="_on_ms_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer/MsEdit" to="." method="_on_ms_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer2/SEdit" to="." method="_on_s_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer2/SEdit" to="." method="_on_s_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer7/CrotchetEdit" to="." method="_on_crotchet_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer7/CrotchetEdit" to="." method="_on_crotchet_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer7/BPMEdit" to="." method="_on_bpm_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer7/BPMEdit" to="." method="_on_bpm_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer3/HzEdit" to="." method="_on_hz_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer3/HzEdit" to="." method="_on_hz_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer4/MIDIEdit" to="." method="_on_midi_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer4/MIDIEdit" to="." method="_on_midi_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer5/SampleNoEdit" to="." method="_on_sample_no_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer5/SampleNoEdit" to="." method="_on_sample_no_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer5/SampleRateEdit" to="." method="_on_sample_rate_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer5/SampleRateEdit" to="." method="_on_sample_rate_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer6/PercentEdit" to="." method="_on_percent_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer6/PercentEdit" to="." method="_on_percent_edit_text_submitted"]
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer6/LengthEdit" to="." method="_on_length_edit_focus_exited"]
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer6/LengthEdit" to="." method="_on_length_edit_text_submitted"]
