nodes.tscn 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. [gd_scene load_steps=9 format=3 uid="uid://duy5epq25pj8u"]
  2. [ext_resource type="Script" uid="uid://bifsyv5gxrddm" path="res://scenes/Nodes/inputfile.gd" id="1_8x08j"]
  3. [ext_resource type="PackedScene" uid="uid://csapiqka522fh" path="res://scenes/Nodes/audioplayer.tscn" id="2_b6nw4"]
  4. [ext_resource type="Script" uid="uid://cqwwhjwatkghf" path="res://scenes/Nodes/outputfile.gd" id="3_0jqh0"]
  5. [ext_resource type="Script" uid="uid://cdbx1dt3ohqte" path="res://scenes/Nodes/node_logic.gd" id="3_uv17x"]
  6. [ext_resource type="Script" uid="uid://cy8x5wubj2kr6" path="res://scenes/Nodes/notes_to_hz.gd" id="4_0jqh0"]
  7. [ext_resource type="FontFile" uid="uid://bfnlymfdfb0e7" path="res://theme/BravuraText_SoundThread.otf" id="5_0jqh0"]
  8. [ext_resource type="Script" uid="uid://cuk68115uw1ge" path="res://scenes/Nodes/convert_time.gd" id="7_w2x51"]
  9. [ext_resource type="Script" uid="uid://catbcnplcacvv" path="res://scenes/Nodes/calculator.gd" id="8_5syjs"]
  10. [node name="Control" type="Control"]
  11. layout_mode = 3
  12. anchors_preset = 15
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. [node name="inputfile" type="GraphNode" parent="."]
  18. layout_mode = 0
  19. offset_left = 21.0
  20. offset_top = 6.0
  21. offset_right = 449.0
  22. offset_bottom = 236.0
  23. tooltip_text = "Stores your input file to be processed. Supports mono and stereo .wav files."
  24. title = "Input File"
  25. slot/0/left_enabled = false
  26. slot/0/left_type = 0
  27. slot/0/left_color = Color(1, 1, 1, 1)
  28. slot/0/left_icon = null
  29. slot/0/right_enabled = true
  30. slot/0/right_type = 0
  31. slot/0/right_color = Color(1, 1, 1, 0.564706)
  32. slot/0/right_icon = null
  33. slot/0/draw_stylebox = true
  34. slot/1/left_enabled = false
  35. slot/1/left_type = 0
  36. slot/1/left_color = Color(1, 1, 1, 1)
  37. slot/1/left_icon = null
  38. slot/1/right_enabled = false
  39. slot/1/right_type = 0
  40. slot/1/right_color = Color(1, 1, 1, 1)
  41. slot/1/right_icon = null
  42. slot/1/draw_stylebox = true
  43. script = ExtResource("1_8x08j")
  44. metadata/command = "inputfile"
  45. metadata/input = true
  46. [node name="Control" type="Control" parent="inputfile"]
  47. layout_mode = 2
  48. [node name="AudioPlayer" parent="inputfile" groups=["inputnode"] instance=ExtResource("2_b6nw4")]
  49. layout_mode = 2
  50. metadata/loadenable = true
  51. metadata/inputfunction = "audioplayer"
  52. [node name="preview" type="GraphNode" parent="."]
  53. layout_mode = 0
  54. offset_left = 26.0
  55. offset_top = 283.0
  56. offset_right = 454.0
  57. offset_bottom = 513.0
  58. tooltip_text = "Stores your input file to be processed. Supports mono and stereo .wav files."
  59. title = "Preview"
  60. slot/0/left_enabled = true
  61. slot/0/left_type = 0
  62. slot/0/left_color = Color(1, 1, 1, 1)
  63. slot/0/left_icon = null
  64. slot/0/right_enabled = false
  65. slot/0/right_type = 0
  66. slot/0/right_color = Color(1, 1, 1, 0.564706)
  67. slot/0/right_icon = null
  68. slot/0/draw_stylebox = true
  69. slot/1/left_enabled = false
  70. slot/1/left_type = 0
  71. slot/1/left_color = Color(1, 1, 1, 1)
  72. slot/1/left_icon = null
  73. slot/1/right_enabled = false
  74. slot/1/right_type = 0
  75. slot/1/right_color = Color(1, 1, 1, 1)
  76. slot/1/right_icon = null
  77. slot/1/draw_stylebox = true
  78. script = ExtResource("3_uv17x")
  79. metadata/command = "preview"
  80. metadata/input = false
  81. [node name="Control" type="Control" parent="preview"]
  82. layout_mode = 2
  83. [node name="AudioPlayer" parent="preview" groups=["inputnode"] instance=ExtResource("2_b6nw4")]
  84. layout_mode = 2
  85. metadata/inputfunction = "audioplayer"
  86. [node name="outputfile" type="GraphNode" parent="."]
  87. layout_mode = 0
  88. offset_left = 523.0
  89. offset_top = 6.0
  90. offset_right = 954.0
  91. offset_bottom = 519.0
  92. tooltip_text = "Handles everything to do with audio output. "
  93. title = "Output File"
  94. slot/0/left_enabled = true
  95. slot/0/left_type = 0
  96. slot/0/left_color = Color(1, 1, 1, 0.564706)
  97. slot/0/left_icon = null
  98. slot/0/right_enabled = false
  99. slot/0/right_type = 0
  100. slot/0/right_color = Color(1, 1, 1, 1)
  101. slot/0/right_icon = null
  102. slot/0/draw_stylebox = true
  103. slot/1/left_enabled = false
  104. slot/1/left_type = 0
  105. slot/1/left_color = Color(1, 1, 1, 1)
  106. slot/1/left_icon = null
  107. slot/1/right_enabled = false
  108. slot/1/right_type = 0
  109. slot/1/right_color = Color(1, 1, 1, 1)
  110. slot/1/right_icon = null
  111. slot/1/draw_stylebox = true
  112. slot/2/left_enabled = false
  113. slot/2/left_type = 0
  114. slot/2/left_color = Color(1, 1, 1, 1)
  115. slot/2/left_icon = null
  116. slot/2/right_enabled = false
  117. slot/2/right_type = 0
  118. slot/2/right_color = Color(1, 1, 1, 1)
  119. slot/2/right_icon = null
  120. slot/2/draw_stylebox = true
  121. slot/3/left_enabled = false
  122. slot/3/left_type = 0
  123. slot/3/left_color = Color(1, 1, 1, 1)
  124. slot/3/left_icon = null
  125. slot/3/right_enabled = false
  126. slot/3/right_type = 0
  127. slot/3/right_color = Color(1, 1, 1, 1)
  128. slot/3/right_icon = null
  129. slot/3/draw_stylebox = true
  130. slot/4/left_enabled = false
  131. slot/4/left_type = 0
  132. slot/4/left_color = Color(1, 1, 1, 1)
  133. slot/4/left_icon = null
  134. slot/4/right_enabled = false
  135. slot/4/right_type = 0
  136. slot/4/right_color = Color(1, 1, 1, 1)
  137. slot/4/right_icon = null
  138. slot/4/draw_stylebox = true
  139. slot/5/left_enabled = false
  140. slot/5/left_type = 0
  141. slot/5/left_color = Color(1, 1, 1, 1)
  142. slot/5/left_icon = null
  143. slot/5/right_enabled = false
  144. slot/5/right_type = 0
  145. slot/5/right_color = Color(1, 1, 1, 1)
  146. slot/5/right_icon = null
  147. slot/5/draw_stylebox = true
  148. slot/6/left_enabled = false
  149. slot/6/left_type = 0
  150. slot/6/left_color = Color(1, 1, 1, 1)
  151. slot/6/left_icon = null
  152. slot/6/right_enabled = false
  153. slot/6/right_type = 0
  154. slot/6/right_color = Color(1, 1, 1, 1)
  155. slot/6/right_icon = null
  156. slot/6/draw_stylebox = true
  157. slot/7/left_enabled = false
  158. slot/7/left_type = 0
  159. slot/7/left_color = Color(1, 1, 1, 1)
  160. slot/7/left_icon = null
  161. slot/7/right_enabled = false
  162. slot/7/right_type = 0
  163. slot/7/right_color = Color(1, 1, 1, 1)
  164. slot/7/right_icon = null
  165. slot/7/draw_stylebox = true
  166. slot/8/left_enabled = false
  167. slot/8/left_type = 0
  168. slot/8/left_color = Color(1, 1, 1, 1)
  169. slot/8/left_icon = null
  170. slot/8/right_enabled = false
  171. slot/8/right_type = 0
  172. slot/8/right_color = Color(1, 1, 1, 1)
  173. slot/8/right_icon = null
  174. slot/8/draw_stylebox = true
  175. slot/9/left_enabled = false
  176. slot/9/left_type = 0
  177. slot/9/left_color = Color(1, 1, 1, 1)
  178. slot/9/left_icon = null
  179. slot/9/right_enabled = false
  180. slot/9/right_type = 0
  181. slot/9/right_color = Color(1, 1, 1, 1)
  182. slot/9/right_icon = null
  183. slot/9/draw_stylebox = true
  184. slot/10/left_enabled = false
  185. slot/10/left_type = 0
  186. slot/10/left_color = Color(1, 1, 1, 1)
  187. slot/10/left_icon = null
  188. slot/10/right_enabled = false
  189. slot/10/right_type = 0
  190. slot/10/right_color = Color(1, 1, 1, 1)
  191. slot/10/right_icon = null
  192. slot/10/draw_stylebox = true
  193. slot/11/left_enabled = false
  194. slot/11/left_type = 0
  195. slot/11/left_color = Color(1, 1, 1, 1)
  196. slot/11/left_icon = null
  197. slot/11/right_enabled = false
  198. slot/11/right_type = 0
  199. slot/11/right_color = Color(1, 1, 1, 1)
  200. slot/11/right_icon = null
  201. slot/11/draw_stylebox = true
  202. slot/12/left_enabled = false
  203. slot/12/left_type = 0
  204. slot/12/left_color = Color(1, 1, 1, 1)
  205. slot/12/left_icon = null
  206. slot/12/right_enabled = false
  207. slot/12/right_type = 0
  208. slot/12/right_color = Color(1, 1, 1, 1)
  209. slot/12/right_icon = null
  210. slot/12/draw_stylebox = true
  211. script = ExtResource("3_0jqh0")
  212. metadata/command = "outputfile"
  213. metadata/utility = true
  214. metadata/input = false
  215. [node name="Control" type="Control" parent="outputfile"]
  216. layout_mode = 2
  217. [node name="Label2" type="Label" parent="outputfile"]
  218. layout_mode = 2
  219. text = "File Name:"
  220. [node name="MarginContainer5" type="MarginContainer" parent="outputfile"]
  221. layout_mode = 2
  222. theme_override_constants/margin_bottom = 2
  223. [node name="FileNameField" type="LineEdit" parent="outputfile" groups=["outputnode"]]
  224. layout_mode = 2
  225. tooltip_text = "Your output file name."
  226. metadata/outputfunction = "filename"
  227. [node name="MarginContainer3" type="MarginContainer" parent="outputfile"]
  228. layout_mode = 2
  229. theme_override_constants/margin_bottom = 5
  230. [node name="RunProcess" type="Button" parent="outputfile" groups=["outputnode"]]
  231. custom_minimum_size = Vector2(0, 43)
  232. layout_mode = 2
  233. tooltip_text = "Runs the CDP commands in the thread."
  234. text = "Run Thread"
  235. metadata/outputfunction = "runprocess"
  236. [node name="DeleteIntermediateFilesToggle" type="CheckButton" parent="outputfile" groups=["outputnode"]]
  237. custom_minimum_size = Vector2(0, 43)
  238. layout_mode = 2
  239. tooltip_text = "SoundThread makes a lot of files. When toggled on this deletes everything but the output file."
  240. text = "Delete Intermediate Files"
  241. expand_icon = true
  242. metadata/outputfunction = "deleteintermediate"
  243. [node name="ReuseFolderToggle" type="CheckButton" parent="outputfile" groups=["outputnode"]]
  244. custom_minimum_size = Vector2(0, 43)
  245. layout_mode = 2
  246. tooltip_text = "Stops you from being prompted for new folder each time you run a thread."
  247. text = "Reuse Last Output Folder"
  248. expand_icon = true
  249. metadata/outputfunction = "reusefolder"
  250. [node name="OpenOutputFolder" type="Button" parent="outputfile" groups=["outputnode"]]
  251. custom_minimum_size = Vector2(0, 43)
  252. layout_mode = 2
  253. tooltip_text = "Opens the folder on your computer where the output file is saved."
  254. text = "Open Folder"
  255. metadata/outputfunction = "openfolder"
  256. [node name="MarginContainer2" type="MarginContainer" parent="outputfile"]
  257. layout_mode = 2
  258. theme_override_constants/margin_bottom = 5
  259. [node name="HBoxContainer" type="HBoxContainer" parent="outputfile"]
  260. layout_mode = 2
  261. [node name="Label" type="Label" parent="outputfile/HBoxContainer"]
  262. layout_mode = 2
  263. size_flags_horizontal = 3
  264. text = "Rendered Output File:"
  265. [node name="Autoplay" type="CheckButton" parent="outputfile/HBoxContainer" groups=["outputnode"]]
  266. layout_mode = 2
  267. text = "Autoplay"
  268. [node name="MarginContainer4" type="MarginContainer" parent="outputfile"]
  269. layout_mode = 2
  270. theme_override_constants/margin_bottom = 2
  271. [node name="AudioPlayer" parent="outputfile" groups=["outputnode"] instance=ExtResource("2_b6nw4")]
  272. layout_mode = 2
  273. metadata/outputfunction = "audioplayer"
  274. [node name="notes" type="GraphNode" parent="."]
  275. layout_mode = 0
  276. offset_left = 1042.0
  277. offset_top = 32.0
  278. offset_right = 1425.0
  279. offset_bottom = 329.0
  280. tooltip_text = "A node just for taking notes."
  281. title = "Notes"
  282. slot/0/left_enabled = false
  283. slot/0/left_type = 1
  284. slot/0/left_color = Color(0, 0, 0, 1)
  285. slot/0/left_icon = null
  286. slot/0/right_enabled = false
  287. slot/0/right_type = 1
  288. slot/0/right_color = Color(0, 0, 0, 1)
  289. slot/0/right_icon = null
  290. slot/0/draw_stylebox = true
  291. script = ExtResource("3_uv17x")
  292. metadata/command = "notes"
  293. metadata/utility = true
  294. metadata/input = false
  295. [node name="CodeEdit" type="CodeEdit" parent="notes"]
  296. custom_minimum_size = Vector2(0, 10)
  297. layout_mode = 2
  298. size_flags_vertical = 3
  299. wrap_mode = 1
  300. [node name="note_to_hz" type="GraphNode" parent="."]
  301. layout_mode = 0
  302. offset_left = 1528.0
  303. offset_top = 31.0
  304. offset_right = 1911.0
  305. offset_bottom = 257.0
  306. tooltip_text = "Converts from a musical note to Hz"
  307. title = "Convert Note to Hz"
  308. slot/0/left_enabled = false
  309. slot/0/left_type = 1
  310. slot/0/left_color = Color(0, 0, 0, 1)
  311. slot/0/left_icon = null
  312. slot/0/right_enabled = false
  313. slot/0/right_type = 1
  314. slot/0/right_color = Color(0, 0, 0, 1)
  315. slot/0/right_icon = null
  316. slot/0/draw_stylebox = true
  317. slot/1/left_enabled = false
  318. slot/1/left_type = 0
  319. slot/1/left_color = Color(1, 1, 1, 1)
  320. slot/1/left_icon = null
  321. slot/1/right_enabled = false
  322. slot/1/right_type = 0
  323. slot/1/right_color = Color(1, 1, 1, 1)
  324. slot/1/right_icon = null
  325. slot/1/draw_stylebox = true
  326. slot/2/left_enabled = false
  327. slot/2/left_type = 0
  328. slot/2/left_color = Color(1, 1, 1, 1)
  329. slot/2/left_icon = null
  330. slot/2/right_enabled = false
  331. slot/2/right_type = 0
  332. slot/2/right_color = Color(1, 1, 1, 1)
  333. slot/2/right_icon = null
  334. slot/2/draw_stylebox = true
  335. script = ExtResource("4_0jqh0")
  336. metadata/command = "note_to_hz"
  337. metadata/utility = true
  338. metadata/input = false
  339. [node name="Note" type="ItemList" parent="note_to_hz"]
  340. layout_mode = 2
  341. theme_override_font_sizes/font_size = 20
  342. allow_search = false
  343. auto_height = true
  344. item_count = 7
  345. max_columns = 7
  346. same_column_width = true
  347. fixed_column_width = 45
  348. icon_mode = 0
  349. item_0/text = "A"
  350. item_1/text = "B"
  351. item_2/text = "C"
  352. item_3/text = "D"
  353. item_4/text = "E"
  354. item_5/text = "F"
  355. item_6/text = "G"
  356. [node name="Accidental" type="ItemList" parent="note_to_hz"]
  357. custom_minimum_size = Vector2(0, 40)
  358. layout_mode = 2
  359. theme_override_fonts/font = ExtResource("5_0jqh0")
  360. theme_override_font_sizes/font_size = 30
  361. allow_search = false
  362. auto_height = true
  363. item_count = 7
  364. max_columns = 7
  365. same_column_width = true
  366. fixed_column_width = 45
  367. icon_mode = 0
  368. item_0/text = ""
  369. item_1/text = ""
  370. item_2/text = ""
  371. item_3/text = ""
  372. item_4/text = ""
  373. item_5/text = ""
  374. item_6/text = ""
  375. [node name="FreqOutput" type="CodeEdit" parent="note_to_hz"]
  376. custom_minimum_size = Vector2(0, 10)
  377. layout_mode = 2
  378. size_flags_vertical = 3
  379. editable = false
  380. wrap_mode = 1
  381. [node name="convert_time" type="GraphNode" parent="."]
  382. layout_mode = 0
  383. offset_left = 1982.0
  384. offset_top = 34.0
  385. offset_right = 2365.0
  386. offset_bottom = 330.0
  387. tooltip_text = "Converts between various units of time"
  388. title = "Convert Time Units"
  389. slot/0/left_enabled = false
  390. slot/0/left_type = 1
  391. slot/0/left_color = Color(0, 0, 0, 1)
  392. slot/0/left_icon = null
  393. slot/0/right_enabled = false
  394. slot/0/right_type = 1
  395. slot/0/right_color = Color(0, 0, 0, 1)
  396. slot/0/right_icon = null
  397. slot/0/draw_stylebox = true
  398. script = ExtResource("7_w2x51")
  399. metadata/command = "convert_time"
  400. metadata/utility = true
  401. metadata/input = false
  402. [node name="VBoxContainer" type="VBoxContainer" parent="convert_time"]
  403. layout_mode = 2
  404. [node name="HBoxContainer" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  405. layout_mode = 2
  406. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer"]
  407. custom_minimum_size = Vector2(120, 0)
  408. layout_mode = 2
  409. text = "Milliseconds"
  410. [node name="MsEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer"]
  411. layout_mode = 2
  412. size_flags_horizontal = 3
  413. tooltip_text = "The length of time in ms"
  414. [node name="MarginContainer5" type="MarginContainer" parent="convert_time/VBoxContainer"]
  415. layout_mode = 2
  416. theme_override_constants/margin_bottom = 2
  417. [node name="HBoxContainer2" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  418. layout_mode = 2
  419. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer2"]
  420. custom_minimum_size = Vector2(120, 0)
  421. layout_mode = 2
  422. text = "Seconds"
  423. [node name="SEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer2"]
  424. layout_mode = 2
  425. size_flags_horizontal = 3
  426. tooltip_text = "The length of time in seconds"
  427. [node name="MarginContainer4" type="MarginContainer" parent="convert_time/VBoxContainer"]
  428. layout_mode = 2
  429. theme_override_constants/margin_bottom = 2
  430. [node name="HBoxContainer7" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  431. layout_mode = 2
  432. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer7"]
  433. custom_minimum_size = Vector2(120, 0)
  434. layout_mode = 2
  435. text = "1/4 Notes"
  436. [node name="CrotchetEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer7"]
  437. layout_mode = 2
  438. size_flags_horizontal = 3
  439. tooltip_text = "The length of time as a number of 1/4 notes at the given BPM"
  440. [node name="Label2" type="Label" parent="convert_time/VBoxContainer/HBoxContainer7"]
  441. layout_mode = 2
  442. text = "at"
  443. [node name="BPMEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer7"]
  444. layout_mode = 2
  445. size_flags_horizontal = 3
  446. tooltip_text = "The BPM to calculate 1/4 notes at"
  447. [node name="MarginContainer6" type="MarginContainer" parent="convert_time/VBoxContainer"]
  448. layout_mode = 2
  449. theme_override_constants/margin_bottom = 2
  450. [node name="HBoxContainer3" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  451. layout_mode = 2
  452. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer3"]
  453. custom_minimum_size = Vector2(120, 0)
  454. layout_mode = 2
  455. text = "Hertz"
  456. [node name="HzEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer3"]
  457. layout_mode = 2
  458. size_flags_horizontal = 3
  459. tooltip_text = "The length of time in Hz"
  460. [node name="MarginContainer3" type="MarginContainer" parent="convert_time/VBoxContainer"]
  461. layout_mode = 2
  462. theme_override_constants/margin_bottom = 2
  463. [node name="HBoxContainer4" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  464. layout_mode = 2
  465. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer4"]
  466. custom_minimum_size = Vector2(120, 0)
  467. layout_mode = 2
  468. text = "MIDI Note"
  469. [node name="MIDIEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer4"]
  470. layout_mode = 2
  471. size_flags_horizontal = 3
  472. tooltip_text = "The length of time as a MIDI note number"
  473. [node name="MarginContainer2" type="MarginContainer" parent="convert_time/VBoxContainer"]
  474. layout_mode = 2
  475. theme_override_constants/margin_bottom = 2
  476. [node name="HBoxContainer5" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  477. layout_mode = 2
  478. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer5"]
  479. custom_minimum_size = Vector2(120, 0)
  480. layout_mode = 2
  481. text = "Samples"
  482. [node name="SampleNoEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer5"]
  483. layout_mode = 2
  484. size_flags_horizontal = 3
  485. tooltip_text = "The length of time as a number of samples at the given sample rate"
  486. [node name="Label2" type="Label" parent="convert_time/VBoxContainer/HBoxContainer5"]
  487. layout_mode = 2
  488. text = "at"
  489. [node name="SampleRateEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer5"]
  490. layout_mode = 2
  491. size_flags_horizontal = 3
  492. tooltip_text = "The sample rate to calculate samples at"
  493. [node name="MarginContainer" type="MarginContainer" parent="convert_time/VBoxContainer"]
  494. layout_mode = 2
  495. theme_override_constants/margin_bottom = 2
  496. [node name="HBoxContainer6" type="HBoxContainer" parent="convert_time/VBoxContainer"]
  497. layout_mode = 2
  498. [node name="Label" type="Label" parent="convert_time/VBoxContainer/HBoxContainer6"]
  499. custom_minimum_size = Vector2(120, 0)
  500. layout_mode = 2
  501. text = "% of Time (s)"
  502. [node name="PercentEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer6"]
  503. layout_mode = 2
  504. size_flags_horizontal = 3
  505. tooltip_text = "The length of time as a percentage of the given time in seconds"
  506. [node name="Label3" type="Label" parent="convert_time/VBoxContainer/HBoxContainer6"]
  507. layout_mode = 2
  508. text = "of"
  509. [node name="LengthEdit" type="LineEdit" parent="convert_time/VBoxContainer/HBoxContainer6"]
  510. layout_mode = 2
  511. size_flags_horizontal = 3
  512. tooltip_text = "The length of time in seconds to a percentage of"
  513. [node name="calculator" type="GraphNode" parent="."]
  514. layout_mode = 0
  515. offset_left = 2453.0
  516. offset_top = 33.0
  517. offset_right = 2836.0
  518. offset_bottom = 330.0
  519. tooltip_text = "A simple calculator for quick maths"
  520. title = "Calculator"
  521. slot/0/left_enabled = false
  522. slot/0/left_type = 1
  523. slot/0/left_color = Color(0, 0, 0, 1)
  524. slot/0/left_icon = null
  525. slot/0/right_enabled = false
  526. slot/0/right_type = 1
  527. slot/0/right_color = Color(0, 0, 0, 1)
  528. slot/0/right_icon = null
  529. slot/0/draw_stylebox = true
  530. slot/1/left_enabled = false
  531. slot/1/left_type = 0
  532. slot/1/left_color = Color(1, 1, 1, 1)
  533. slot/1/left_icon = null
  534. slot/1/right_enabled = false
  535. slot/1/right_type = 0
  536. slot/1/right_color = Color(1, 1, 1, 1)
  537. slot/1/right_icon = null
  538. slot/1/draw_stylebox = true
  539. slot/2/left_enabled = false
  540. slot/2/left_type = 0
  541. slot/2/left_color = Color(1, 1, 1, 1)
  542. slot/2/left_icon = null
  543. slot/2/right_enabled = false
  544. slot/2/right_type = 0
  545. slot/2/right_color = Color(1, 1, 1, 1)
  546. slot/2/right_icon = null
  547. slot/2/draw_stylebox = true
  548. slot/3/left_enabled = false
  549. slot/3/left_type = 0
  550. slot/3/left_color = Color(1, 1, 1, 1)
  551. slot/3/left_icon = null
  552. slot/3/right_enabled = false
  553. slot/3/right_type = 0
  554. slot/3/right_color = Color(1, 1, 1, 1)
  555. slot/3/right_icon = null
  556. slot/3/draw_stylebox = true
  557. slot/4/left_enabled = false
  558. slot/4/left_type = 0
  559. slot/4/left_color = Color(1, 1, 1, 1)
  560. slot/4/left_icon = null
  561. slot/4/right_enabled = false
  562. slot/4/right_type = 0
  563. slot/4/right_color = Color(1, 1, 1, 1)
  564. slot/4/right_icon = null
  565. slot/4/draw_stylebox = true
  566. slot/5/left_enabled = false
  567. slot/5/left_type = 0
  568. slot/5/left_color = Color(1, 1, 1, 1)
  569. slot/5/left_icon = null
  570. slot/5/right_enabled = false
  571. slot/5/right_type = 0
  572. slot/5/right_color = Color(1, 1, 1, 1)
  573. slot/5/right_icon = null
  574. slot/5/draw_stylebox = true
  575. slot/6/left_enabled = false
  576. slot/6/left_type = 0
  577. slot/6/left_color = Color(1, 1, 1, 1)
  578. slot/6/left_icon = null
  579. slot/6/right_enabled = false
  580. slot/6/right_type = 0
  581. slot/6/right_color = Color(1, 1, 1, 1)
  582. slot/6/right_icon = null
  583. slot/6/draw_stylebox = true
  584. script = ExtResource("8_5syjs")
  585. metadata/command = "calculator"
  586. metadata/utility = true
  587. metadata/input = false
  588. [node name="Screen" type="CodeEdit" parent="calculator"]
  589. custom_minimum_size = Vector2(0, 100)
  590. layout_mode = 2
  591. theme_override_font_sizes/font_size = 25
  592. editable = false
  593. [node name="MarginContainer7" type="MarginContainer" parent="calculator"]
  594. layout_mode = 2
  595. theme_override_constants/margin_bottom = 4
  596. [node name="HBoxContainer" type="HBoxContainer" parent="calculator"]
  597. custom_minimum_size = Vector2(0, 50)
  598. layout_mode = 2
  599. [node name="Button" type="Button" parent="calculator/HBoxContainer"]
  600. layout_mode = 2
  601. size_flags_horizontal = 3
  602. text = "("
  603. metadata/calc = "("
  604. [node name="Button2" type="Button" parent="calculator/HBoxContainer"]
  605. layout_mode = 2
  606. size_flags_horizontal = 3
  607. text = ")"
  608. metadata/calc = ")"
  609. [node name="Button3" type="Button" parent="calculator/HBoxContainer"]
  610. layout_mode = 2
  611. size_flags_horizontal = 3
  612. text = "C"
  613. metadata/calc = "clear"
  614. [node name="Button4" type="Button" parent="calculator/HBoxContainer"]
  615. layout_mode = 2
  616. size_flags_horizontal = 3
  617. text = "⌫"
  618. metadata/calc = "del"
  619. [node name="HBoxContainer5" type="HBoxContainer" parent="calculator"]
  620. custom_minimum_size = Vector2(0, 50)
  621. layout_mode = 2
  622. [node name="Button" type="Button" parent="calculator/HBoxContainer5"]
  623. layout_mode = 2
  624. size_flags_horizontal = 3
  625. text = "7"
  626. metadata/calc = "7"
  627. [node name="Button2" type="Button" parent="calculator/HBoxContainer5"]
  628. layout_mode = 2
  629. size_flags_horizontal = 3
  630. text = "8"
  631. metadata/calc = "8"
  632. [node name="Button3" type="Button" parent="calculator/HBoxContainer5"]
  633. layout_mode = 2
  634. size_flags_horizontal = 3
  635. text = "9"
  636. metadata/calc = "9"
  637. [node name="Button4" type="Button" parent="calculator/HBoxContainer5"]
  638. layout_mode = 2
  639. size_flags_horizontal = 3
  640. text = "÷"
  641. metadata/calc = "/"
  642. [node name="HBoxContainer2" type="HBoxContainer" parent="calculator"]
  643. custom_minimum_size = Vector2(0, 50)
  644. layout_mode = 2
  645. [node name="Button" type="Button" parent="calculator/HBoxContainer2"]
  646. layout_mode = 2
  647. size_flags_horizontal = 3
  648. text = "4"
  649. metadata/calc = "4"
  650. [node name="Button2" type="Button" parent="calculator/HBoxContainer2"]
  651. layout_mode = 2
  652. size_flags_horizontal = 3
  653. text = "5"
  654. metadata/calc = "5"
  655. [node name="Button3" type="Button" parent="calculator/HBoxContainer2"]
  656. layout_mode = 2
  657. size_flags_horizontal = 3
  658. text = "6"
  659. metadata/calc = "6"
  660. [node name="Button4" type="Button" parent="calculator/HBoxContainer2"]
  661. layout_mode = 2
  662. size_flags_horizontal = 3
  663. text = "×"
  664. metadata/calc = "*"
  665. [node name="HBoxContainer3" type="HBoxContainer" parent="calculator"]
  666. custom_minimum_size = Vector2(0, 50)
  667. layout_mode = 2
  668. [node name="Button" type="Button" parent="calculator/HBoxContainer3"]
  669. layout_mode = 2
  670. size_flags_horizontal = 3
  671. text = "1"
  672. metadata/calc = "1"
  673. [node name="Button2" type="Button" parent="calculator/HBoxContainer3"]
  674. layout_mode = 2
  675. size_flags_horizontal = 3
  676. text = "2"
  677. metadata/calc = "2"
  678. [node name="Button3" type="Button" parent="calculator/HBoxContainer3"]
  679. layout_mode = 2
  680. size_flags_horizontal = 3
  681. text = "3"
  682. metadata/calc = "3"
  683. [node name="Button4" type="Button" parent="calculator/HBoxContainer3"]
  684. layout_mode = 2
  685. size_flags_horizontal = 3
  686. text = "-"
  687. metadata/calc = "-"
  688. [node name="HBoxContainer4" type="HBoxContainer" parent="calculator"]
  689. custom_minimum_size = Vector2(0, 50)
  690. layout_mode = 2
  691. [node name="Button" type="Button" parent="calculator/HBoxContainer4"]
  692. layout_mode = 2
  693. size_flags_horizontal = 3
  694. text = "0"
  695. metadata/calc = "0"
  696. [node name="Button2" type="Button" parent="calculator/HBoxContainer4"]
  697. layout_mode = 2
  698. size_flags_horizontal = 3
  699. text = "."
  700. metadata/calc = "."
  701. [node name="Button3" type="Button" parent="calculator/HBoxContainer4"]
  702. layout_mode = 2
  703. size_flags_horizontal = 3
  704. text = "="
  705. metadata/calc = "="
  706. [node name="Button4" type="Button" parent="calculator/HBoxContainer4"]
  707. layout_mode = 2
  708. size_flags_horizontal = 3
  709. text = "+"
  710. metadata/calc = "+"
  711. [connection signal="text_submitted" from="outputfile/FileNameField" to="outputfile" method="_on_file_name_field_text_submitted"]
  712. [connection signal="toggled" from="outputfile/DeleteIntermediateFilesToggle" to="outputfile" method="_on_delete_intermediate_files_toggle_toggled"]
  713. [connection signal="toggled" from="outputfile/ReuseFolderToggle" to="outputfile" method="_on_reuse_folder_toggle_toggled"]
  714. [connection signal="toggled" from="outputfile/HBoxContainer/Autoplay" to="outputfile" method="_on_autoplay_toggled"]
  715. [connection signal="item_selected" from="note_to_hz/Note" to="note_to_hz" method="_on_item_list_item_selected"]
  716. [connection signal="item_selected" from="note_to_hz/Accidental" to="note_to_hz" method="_on_item_list_2_item_selected"]
  717. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer/MsEdit" to="convert_time" method="_on_ms_edit_focus_exited"]
  718. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer/MsEdit" to="convert_time" method="_on_ms_edit_text_submitted"]
  719. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer2/SEdit" to="convert_time" method="_on_s_edit_focus_exited"]
  720. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer2/SEdit" to="convert_time" method="_on_s_edit_text_submitted"]
  721. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer7/CrotchetEdit" to="convert_time" method="_on_crotchet_edit_focus_exited"]
  722. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer7/CrotchetEdit" to="convert_time" method="_on_crotchet_edit_text_submitted"]
  723. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer7/BPMEdit" to="convert_time" method="_on_bpm_edit_focus_exited"]
  724. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer7/BPMEdit" to="convert_time" method="_on_bpm_edit_text_submitted"]
  725. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer3/HzEdit" to="convert_time" method="_on_hz_edit_focus_exited"]
  726. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer3/HzEdit" to="convert_time" method="_on_hz_edit_text_submitted"]
  727. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer4/MIDIEdit" to="convert_time" method="_on_midi_edit_focus_exited"]
  728. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer4/MIDIEdit" to="convert_time" method="_on_midi_edit_text_submitted"]
  729. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer5/SampleNoEdit" to="convert_time" method="_on_sample_no_edit_focus_exited"]
  730. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer5/SampleNoEdit" to="convert_time" method="_on_sample_no_edit_text_submitted"]
  731. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer5/SampleRateEdit" to="convert_time" method="_on_sample_rate_edit_focus_exited"]
  732. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer5/SampleRateEdit" to="convert_time" method="_on_sample_rate_edit_text_submitted"]
  733. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer6/PercentEdit" to="convert_time" method="_on_percent_edit_focus_exited"]
  734. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer6/PercentEdit" to="convert_time" method="_on_percent_edit_text_submitted"]
  735. [connection signal="focus_exited" from="convert_time/VBoxContainer/HBoxContainer6/LengthEdit" to="convert_time" method="_on_length_edit_focus_exited"]
  736. [connection signal="text_submitted" from="convert_time/VBoxContainer/HBoxContainer6/LengthEdit" to="convert_time" method="_on_length_edit_text_submitted"]