84 lines
2.2 KiB
Plaintext
84 lines
2.2 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/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 = 348.0
|
|
margin_bottom = 118.0
|
|
|
|
[node name="sfx_buttons" type="ReferenceRect" parent="."]
|
|
margin_top = 130.0
|
|
margin_right = 198.0
|
|
margin_bottom = 176.0
|
|
|
|
[node name="sb_bgm" type="SpinBox" parent="."]
|
|
margin_top = 188.0
|
|
margin_right = 38.0
|
|
margin_bottom = 212.0
|
|
rect_min_size = Vector2( 38, 0 )
|
|
max_value = 69.0
|
|
align = 2
|
|
|
|
[node name="btn_bgm_live" type="Button" parent="."]
|
|
margin_left = 40.0
|
|
margin_top = 188.0
|
|
margin_right = 126.0
|
|
margin_bottom = 212.0
|
|
text = "Play BGM live"
|
|
|
|
[node name="btn_bgm_prerendered" type="Button" parent="."]
|
|
margin_left = 132.0
|
|
margin_top = 188.0
|
|
margin_right = 272.0
|
|
margin_bottom = 212.0
|
|
text = "Play BGM prerendered"
|
|
|
|
[node name="btn_render" type="Button" parent="."]
|
|
margin_left = 278.0
|
|
margin_top = 188.0
|
|
margin_right = 374.0
|
|
margin_bottom = 212.0
|
|
text = "Render All BGM"
|
|
|
|
[node name="btn_stop" type="Button" parent="."]
|
|
margin_left = 320.0
|
|
margin_top = 216.0
|
|
margin_right = 374.0
|
|
margin_bottom = 240.0
|
|
text = "Stop All"
|
|
|
|
[node name="lbl_bgm_title" type="Label" parent="."]
|
|
margin_left = 2.0
|
|
margin_top = 220.0
|
|
margin_right = 42.0
|
|
margin_bottom = 234.0
|
|
|
|
[node name="audio_player" type="AudioStreamPlayer" parent="."]
|