ChocolateBird/test/audio_system.tscn

88 lines
2.4 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=6 format=2]
2023-07-27 19:58:29 +09:30
[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]
2024-07-10 22:13:58 +09:30
[sub_resource type="Curve" id=3]
_data = [ Vector2( 0, 0 ), 0.0, 2.46705, 0, 1, Vector2( 0.335329, 0.827273 ), 2.46705, -1.6562, 1, 1, Vector2( 0.631737, 0.336364 ), -1.6562, 1.80207, 1, 1, Vector2( 1, 1 ), 1.80207, 0.0, 1, 0 ]
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 4 )
2024-07-10 22:13:58 +09:30
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 )
2023-07-27 19:58:29 +09:30
[node name="audio_system" type="Node2D"]
script = ExtResource( 1 )
2024-07-10 22:13:58 +09:30
curve = SubResource( 3 )
2023-08-23 17:26:16 +09:30
[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 )
2023-08-23 17:26:16 +09:30
[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="."]
2024-07-10 22:13:58 +09:30
margin_top = 188.0
margin_right = 38.0
2024-07-10 22:13:58 +09:30
margin_bottom = 212.0
2023-08-23 17:26:16 +09:30
rect_min_size = Vector2( 38, 0 )
2024-07-10 22:13:58 +09:30
max_value = 69.0
2023-08-23 17:26:16 +09:30
align = 2
2024-07-10 22:13:58 +09:30
[node name="btn_bgm_live" type="Button" parent="."]
2023-08-23 17:26:16 +09:30
margin_left = 40.0
2024-07-10 22:13:58 +09:30
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
2024-07-10 22:13:58 +09:30
margin_top = 216.0
margin_right = 374.0
2024-07-10 22:13:58 +09:30
margin_bottom = 240.0
text = "Stop All"
2024-07-10 22:13:58 +09:30
[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="."]