control.tscn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. [gd_scene load_steps=5 format=3 uid="uid://bcs87y7ptx3ke"]
  2. [ext_resource type="Script" uid="uid://bdlfvuljckmu1" path="res://scenes/main/control.gd" id="1_2f0aq"]
  3. [ext_resource type="Script" uid="uid://l2yejnjysupr" path="res://scenes/main/graph_edit.gd" id="2_3ioqo"]
  4. [ext_resource type="PackedScene" uid="uid://b0wdj8v6o0wq0" path="res://scenes/menu/menu.tscn" id="3_dtf4o"]
  5. [ext_resource type="Texture2D" uid="uid://cdwux1smquvpi" path="res://theme/images/logo.png" id="4_3ioqo"]
  6. [node name="Control" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_2f0aq")
  14. [node name="GraphEdit" type="GraphEdit" parent="."]
  15. layout_mode = 1
  16. anchors_preset = -1
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. offset_top = 32.0
  20. right_disconnects = true
  21. script = ExtResource("2_3ioqo")
  22. [node name="FileDialog" type="FileDialog" parent="."]
  23. title = "Open a Directory"
  24. ok_button_text = "Select Current Folder"
  25. file_mode = 2
  26. access = 2
  27. use_native_dialog = true
  28. [node name="mainmenu" parent="." instance=ExtResource("3_dtf4o")]
  29. visible = false
  30. layout_mode = 0
  31. anchors_preset = 0
  32. anchor_right = 0.0
  33. anchor_bottom = 0.0
  34. offset_left = 600.0
  35. offset_top = 456.0
  36. offset_right = 600.0
  37. offset_bottom = 456.0
  38. grow_horizontal = 1
  39. grow_vertical = 1
  40. [node name="NoLocationPopup" type="Window" parent="." groups=["popup_windows"]]
  41. auto_translate_mode = 1
  42. title = "Wrong File Type"
  43. initial_position = 2
  44. size = Vector2i(450, 500)
  45. visible = false
  46. transient = true
  47. exclusive = true
  48. unresizable = true
  49. borderless = true
  50. popup_window = true
  51. [node name="TextureRect" type="TextureRect" parent="NoLocationPopup"]
  52. offset_left = -6.0
  53. offset_top = 16.0
  54. offset_right = 378.0
  55. offset_bottom = 64.0
  56. texture = ExtResource("4_3ioqo")
  57. expand_mode = 2
  58. stretch_mode = 4
  59. [node name="RichTextLabel" type="RichTextLabel" parent="NoLocationPopup"]
  60. offset_left = 16.0
  61. offset_top = 73.0
  62. offset_right = 435.0
  63. offset_bottom = 457.0
  64. bbcode_enabled = true
  65. text = "Welcome to SoundThread!
  66. SoundThread is an interface for the Composers Desktop Project (CDP) audio processing tools. As such it requires you to have CDP installed to work correctly. If you don't already have CDP installed you can [url=\"https://www.unstablesound.net/cdp.html\"]download it here.[/url]
  67. When you close this window you will be prompted for the location of your _cdprogs folder. The default location for this folder is:
  68. Windows: C:/cdpr8/_cdp/_cdprogs
  69. Mac: ~/cdpr8/_cdp/_cdprogs
  70. SoundThread will remember this but you can always change it later in Settings.
  71. If this is your first time using SoundThread you can find some getting started tutorials in the Help tab in the top menu."
  72. scroll_active = false
  73. [node name="OkButton" type="Button" parent="NoLocationPopup"]
  74. offset_left = -7.0
  75. offset_top = 469.0
  76. offset_right = 457.0
  77. offset_bottom = 500.0
  78. text = "Click to locate _cdprogs"
  79. [node name="NoInputPopup" type="Window" parent="." groups=["popup_windows"]]
  80. auto_translate_mode = 1
  81. title = "No Input Selected"
  82. initial_position = 2
  83. size = Vector2i(380, 140)
  84. visible = false
  85. transient = true
  86. exclusive = true
  87. unresizable = true
  88. borderless = true
  89. popup_window = true
  90. [node name="Label" type="Label" parent="NoInputPopup"]
  91. offset_left = 14.0
  92. offset_top = 7.0
  93. offset_right = 363.0
  94. offset_bottom = 100.0
  95. text = "No input file selected
  96. Please load a sound file into Input File node
  97. Supported file type: .wav, mono or stereo"
  98. horizontal_alignment = 1
  99. vertical_alignment = 1
  100. autowrap_mode = 2
  101. [node name="OkButton2" type="Button" parent="NoInputPopup"]
  102. offset_left = -10.0
  103. offset_top = 110.0
  104. offset_right = 390.0
  105. offset_bottom = 141.0
  106. text = "Ok"
  107. [node name="MultipleConnectionsPopup" type="Window" parent="." groups=["popup_windows"]]
  108. auto_translate_mode = 1
  109. title = "No Input Selected"
  110. initial_position = 2
  111. size = Vector2i(380, 160)
  112. visible = false
  113. transient = true
  114. exclusive = true
  115. unresizable = true
  116. borderless = true
  117. popup_window = true
  118. [node name="Label" type="Label" parent="MultipleConnectionsPopup"]
  119. offset_left = 14.0
  120. offset_top = 10.0
  121. offset_right = 363.0
  122. offset_bottom = 117.0
  123. text = "PVOC Nodes can only have one input.
  124. To mix sounds created in the frequency domain convert them to the time domain using PVOC: Resynthesise first."
  125. horizontal_alignment = 1
  126. vertical_alignment = 1
  127. autowrap_mode = 2
  128. [node name="OkButton3" type="Button" parent="MultipleConnectionsPopup"]
  129. offset_left = -10.0
  130. offset_top = 128.0
  131. offset_right = 389.0
  132. offset_bottom = 159.0
  133. text = "Ok"
  134. [node name="CdpLocationDialog" type="FileDialog" parent="."]
  135. title = "Open a Directory"
  136. ok_button_text = "Select Current Folder"
  137. file_mode = 2
  138. access = 2
  139. use_native_dialog = true
  140. [node name="Console" type="Window" parent="." groups=["popup_windows"]]
  141. title = "Generating Output"
  142. initial_position = 5
  143. size = Vector2i(600, 400)
  144. visible = false
  145. unresizable = true
  146. always_on_top = true
  147. [node name="Panel" type="Panel" parent="Console"]
  148. offset_left = 10.0
  149. offset_top = 8.0
  150. offset_right = 590.0
  151. offset_bottom = 352.0
  152. [node name="ConsoleOutput" type="RichTextLabel" parent="Console"]
  153. offset_left = 10.0
  154. offset_top = 12.0
  155. offset_right = 590.0
  156. offset_bottom = 351.0
  157. bbcode_enabled = true
  158. [node name="ConsoleOpenFolder" type="Button" parent="Console"]
  159. offset_left = -4.0
  160. offset_top = 360.0
  161. offset_right = 604.0
  162. offset_bottom = 401.0
  163. text = "Open Output Folder"
  164. [node name="ColorRect" type="ColorRect" parent="."]
  165. layout_mode = 1
  166. anchors_preset = 10
  167. anchor_right = 1.0
  168. offset_bottom = 35.0
  169. grow_horizontal = 2
  170. color = Color(0.0646965, 0.0646965, 0.0646965, 1)
  171. [node name="MenuBar" type="MenuBar" parent="."]
  172. layout_mode = 1
  173. anchors_preset = 10
  174. anchor_right = 1.0
  175. offset_left = 8.0
  176. offset_top = 4.0
  177. offset_right = -8.0
  178. offset_bottom = 35.0
  179. grow_horizontal = 2
  180. flat = true
  181. prefer_global_menu = false
  182. [node name="FileButton" type="PopupMenu" parent="MenuBar"]
  183. title = "File"
  184. item_count = 4
  185. item_0/text = "New Thread"
  186. item_0/id = 2
  187. item_1/text = "Save Thread"
  188. item_1/id = 3
  189. item_2/text = "Save Thread As"
  190. item_2/id = 0
  191. item_3/text = "Load Thread"
  192. item_3/id = 1
  193. [node name="SettingsButton" type="PopupMenu" parent="MenuBar"]
  194. title = "Settings"
  195. item_count = 4
  196. item_0/text = "Change CDP Folder Location"
  197. item_0/id = 0
  198. item_1/text = "Disable PVOC Multi Input Warning"
  199. item_1/checkable = 1
  200. item_1/id = 1
  201. item_2/text = "Auto Close Console"
  202. item_2/checkable = 1
  203. item_2/id = 2
  204. item_3/text = "Open the Console"
  205. item_3/id = 3
  206. [node name="HelpButton" type="PopupMenu" parent="MenuBar"]
  207. auto_translate_mode = 1
  208. title = "Help"
  209. item_count = 12
  210. item_0/text = "Tutorials"
  211. item_0/id = 0
  212. item_0/separator = true
  213. item_1/text = "Getting Started"
  214. item_1/id = 1
  215. item_2/text = "Navigating SoundThread"
  216. item_2/id = 2
  217. item_3/text = "Building a Thread"
  218. item_3/id = 3
  219. item_4/text = "Frequency Domain"
  220. item_4/id = 4
  221. item_5/text = "Automation"
  222. item_5/id = 5
  223. item_6/text = "Trimming Input Files"
  224. item_6/id = 6
  225. item_7/text = "Tips"
  226. item_7/id = 7
  227. item_7/separator = true
  228. item_8/text = "Wet/Dry Mix"
  229. item_8/id = 8
  230. item_9/text = "Other Help"
  231. item_9/id = 9
  232. item_9/separator = true
  233. item_10/text = "CDP Documentation"
  234. item_10/id = 10
  235. item_11/text = "Report a Bug"
  236. item_11/id = 11
  237. [node name="About" type="PopupMenu" parent="MenuBar"]
  238. item_count = 1
  239. item_0/id = 0
  240. item_0/disabled = true
  241. [node name="SaveDialog" type="FileDialog" parent="."]
  242. use_native_dialog = true
  243. [node name="LoadDialog" type="FileDialog" parent="."]
  244. auto_translate_mode = 1
  245. use_native_dialog = true
  246. [node name="SaveChangesPopup" type="Window" parent="." groups=["popup_windows"]]
  247. auto_translate_mode = 1
  248. title = "No Input Selected"
  249. initial_position = 2
  250. size = Vector2i(350, 100)
  251. visible = false
  252. transient = true
  253. exclusive = true
  254. unresizable = true
  255. borderless = true
  256. popup_window = true
  257. [node name="Label" type="Label" parent="SaveChangesPopup"]
  258. offset_left = -1.0
  259. offset_top = 21.0
  260. offset_right = 348.0
  261. offset_bottom = 52.0
  262. text = "Save changes to this thread?"
  263. horizontal_alignment = 1
  264. vertical_alignment = 1
  265. autowrap_mode = 2
  266. [node name="SaveChanges" type="Button" parent="SaveChangesPopup"]
  267. offset_left = -1.0
  268. offset_top = 70.0
  269. offset_right = 175.0
  270. offset_bottom = 101.0
  271. text = "Save"
  272. [node name="DontSaveChanges" type="Button" parent="SaveChangesPopup"]
  273. offset_left = 175.0
  274. offset_top = 70.0
  275. offset_right = 351.0
  276. offset_bottom = 101.0
  277. text = "Don't Save"
  278. [node name="HelpWindow" type="Window" parent="."]
  279. initial_position = 2
  280. size = Vector2i(600, 400)
  281. visible = false
  282. unresizable = true
  283. always_on_top = true
  284. [node name="ColorRect" type="ColorRect" parent="HelpWindow"]
  285. offset_right = 604.0
  286. offset_bottom = 400.0
  287. color = Color(0.101961, 0.101961, 0.101961, 0.6)
  288. [node name="HelpTitle" type="Label" parent="HelpWindow"]
  289. offset_left = 12.0
  290. offset_top = 8.0
  291. offset_right = 588.0
  292. offset_bottom = 27.0
  293. theme_override_font_sizes/font_size = 25
  294. text = "Node Name goes here"
  295. [node name="HelpText" type="RichTextLabel" parent="HelpWindow"]
  296. offset_left = 12.0
  297. offset_top = 48.0
  298. offset_right = 588.0
  299. offset_bottom = 392.0
  300. theme_override_colors/table_odd_row_bg = Color(0.101961, 0.101961, 0.101961, 0.262745)
  301. theme_override_constants/table_v_separation = 8
  302. theme_override_constants/table_h_separation = 10
  303. bbcode_enabled = true
  304. text = "Help Text goes in here"
  305. [connection signal="connection_request" from="GraphEdit" to="." method="_on_graph_edit_connection_request"]
  306. [connection signal="delete_nodes_request" from="GraphEdit" to="." method="_on_graph_edit_delete_nodes_request"]
  307. [connection signal="disconnection_request" from="GraphEdit" to="." method="_on_graph_edit_disconnection_request"]
  308. [connection signal="node_deselected" from="GraphEdit" to="." method="_on_graph_edit_node_deselected"]
  309. [connection signal="node_selected" from="GraphEdit" to="." method="_on_graph_edit_node_selected"]
  310. [connection signal="popup_request" from="GraphEdit" to="." method="_on_graph_edit_popup_request"]
  311. [connection signal="dir_selected" from="FileDialog" to="." method="_on_file_dialog_dir_selected"]
  312. [connection signal="meta_clicked" from="NoLocationPopup/RichTextLabel" to="." method="_on_rich_text_label_meta_clicked"]
  313. [connection signal="button_down" from="NoLocationPopup/OkButton" to="." method="_on_ok_button_button_down"]
  314. [connection signal="button_down" from="NoInputPopup/OkButton2" to="." method="_on_ok_button_2_button_down"]
  315. [connection signal="button_down" from="MultipleConnectionsPopup/OkButton3" to="." method="_on_ok_button_3_button_down"]
  316. [connection signal="canceled" from="CdpLocationDialog" to="." method="_on_cdp_location_dialog_canceled"]
  317. [connection signal="dir_selected" from="CdpLocationDialog" to="." method="_on_cdp_location_dialog_dir_selected"]
  318. [connection signal="close_requested" from="Console" to="." method="_on_console_close_requested"]
  319. [connection signal="button_down" from="Console/ConsoleOpenFolder" to="." method="_on_console_open_folder_button_down"]
  320. [connection signal="index_pressed" from="MenuBar/FileButton" to="." method="_on_file_button_index_pressed"]
  321. [connection signal="index_pressed" from="MenuBar/SettingsButton" to="." method="_on_settings_button_index_pressed"]
  322. [connection signal="index_pressed" from="MenuBar/HelpButton" to="." method="_on_help_button_index_pressed"]
  323. [connection signal="file_selected" from="SaveDialog" to="." method="_on_save_dialog_file_selected"]
  324. [connection signal="file_selected" from="LoadDialog" to="." method="_on_load_dialog_file_selected"]
  325. [connection signal="button_down" from="SaveChangesPopup/SaveChanges" to="." method="_on_save_changes_button_down"]
  326. [connection signal="button_down" from="SaveChangesPopup/DontSaveChanges" to="." method="_on_dont_save_changes_button_down"]
  327. [connection signal="close_requested" from="HelpWindow" to="." method="_on_help_window_close_requested"]