98 lines
2.5 KiB
Plaintext
98 lines
2.5 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://test/audio_system.gd" type="Script" id=1]
|
|
[ext_resource path="res://test/audio_renderer.gd" type="Script" id=3]
|
|
[ext_resource path="res://shaders/audio_renderer.gdshader" type="Shader" id=4]
|
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
|
shader = ExtResource( 4 )
|
|
shader_param/INT_OUTPUT_WIDTH = 4096
|
|
shader_param/OUTPUT_FRAMEBUFFER_SIZE = Vector2( 4096, 4096 )
|
|
shader_param/instrument_samples_size = Vector2( 2048, 128 )
|
|
shader_param/reference_note = 71.0
|
|
shader_param/output_mixrate = 32000.0
|
|
shader_param/midi_events_size = Vector2( 2048, 16 )
|
|
|
|
[node name="audio_system" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="viewport_audio_renderer" type="Viewport" parent="."]
|
|
size = Vector2( 4096, 4096 )
|
|
size_override_stretch = true
|
|
transparent_bg = true
|
|
handle_input_locally = false
|
|
hdr = false
|
|
render_target_update_mode = 3
|
|
|
|
[node name="audio_renderer" type="Control" parent="viewport_audio_renderer"]
|
|
unique_name_in_owner = true
|
|
material = SubResource( 2 )
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="inst_buttons" type="ReferenceRect" parent="."]
|
|
margin_right = 384.0
|
|
margin_bottom = 118.0
|
|
|
|
[node name="sfx_buttons" type="ReferenceRect" parent="."]
|
|
margin_left = 192.0
|
|
margin_top = 96.0
|
|
margin_right = 384.0
|
|
margin_bottom = 142.0
|
|
|
|
[node name="sb_bgm" type="SpinBox" parent="."]
|
|
margin_top = 138.0
|
|
margin_right = 38.0
|
|
margin_bottom = 162.0
|
|
rect_min_size = Vector2( 38, 0 )
|
|
max_value = 69.0
|
|
align = 2
|
|
|
|
[node name="btn_bgm_live" type="Button" parent="."]
|
|
margin_top = 216.0
|
|
margin_right = 86.0
|
|
margin_bottom = 240.0
|
|
text = "Play BGM live"
|
|
|
|
[node name="btn_bgm_prerendered" type="Button" parent="."]
|
|
margin_top = 164.0
|
|
margin_right = 140.0
|
|
margin_bottom = 188.0
|
|
text = "Play BGM prerendered"
|
|
|
|
[node name="btn_render" type="Button" parent="."]
|
|
margin_top = 190.0
|
|
margin_right = 96.0
|
|
margin_bottom = 214.0
|
|
text = "Render All BGM"
|
|
|
|
[node name="btn_stop" type="Button" parent="."]
|
|
margin_left = 278.0
|
|
margin_top = 164.0
|
|
margin_right = 384.0
|
|
margin_bottom = 188.0
|
|
text = "Stop All Playback"
|
|
|
|
[node name="lbl_bgm_title" type="Label" parent="."]
|
|
margin_left = 42.0
|
|
margin_top = 143.0
|
|
margin_right = 82.0
|
|
margin_bottom = 157.0
|
|
|
|
[node name="lbl_bgm" type="Label" parent="."]
|
|
margin_left = 3.0
|
|
margin_top = 123.0
|
|
margin_right = 84.0
|
|
margin_bottom = 137.0
|
|
text = "BGM Playback"
|
|
|
|
[node name="audio_player" type="AudioStreamPlayer" parent="."]
|
|
|
|
[node name="btn_exit" type="Button" parent="."]
|
|
margin_left = 245.0
|
|
margin_top = 218.0
|
|
margin_right = 384.0
|
|
margin_bottom = 240.0
|
|
text = "Return to Debug Menu"
|