mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
Add an audio effects demo (#1201)
Co-authored-by: dkleitsas <86194775+dkleitsas@users.noreply.github.com> Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
39
audio/audio_effects/README.md
Normal file
39
audio/audio_effects/README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Audio Effects demo
|
||||
|
||||
This is a simple demo that showcases the various Audio Effects that can be used in Godot.
|
||||
One or more Audio Effects can be toggled and applied to the playable sound effects and background music.
|
||||
|
||||
See [Audio buses](https://docs.godotengine.org/en/stable/tutorials/audio/audio_buses.html)
|
||||
and [Audio effects](https://docs.godotengine.org/en/stable/tutorials/audio/audio_effects.html)
|
||||
in the manual for more information.
|
||||
|
||||
Language: GDScript
|
||||
|
||||
Renderer: Compatibility
|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
|
||||
## Licenses
|
||||
|
||||
### Music
|
||||
|
||||
Monkeys Spinning Monkeys Kevin MacLeod (incompetech.com)
|
||||
Licensed under Creative Commons: By Attribution 3.0 License
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
### Sound Effects
|
||||
|
||||
All sound effects are from [Freesound](https://freesound.org/) and licensed under [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
|
||||
|
||||
- [Ding](https://freesound.org/people/MatthewWong/sounds/361564/) by MatthewWong
|
||||
- [Glass Breaking](https://freesound.org/people/chewiesmissus/sounds/244238/) by chewiesmissus
|
||||
- [Meow](https://freesound.org/people/tuberatanka/sounds/110011/) by tuberatanka
|
||||
- [Whistle](https://freesound.org/people/OwlStorm/sounds/320150/) by OwlStorm
|
||||
- [Negative Beeps](https://freesound.org/people/themusicalnomad/sounds/253886/) by themusicalnomad
|
||||
- [Sad Trombone](https://freesound.org/people/kirbydx/sounds/175409/) by kirbydx
|
||||
- [Static](https://freesound.org/people/dotY21/sounds/335203/) by dotY21
|
||||
|
||||
### Icon
|
||||
- [Equalizer](https://iconduck.com/icons/249702/equalizer) and licensed under [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
|
||||
108
audio/audio_effects/audio_effects.gd
Normal file
108
audio/audio_effects/audio_effects.gd
Normal file
@@ -0,0 +1,108 @@
|
||||
extends Control
|
||||
|
||||
|
||||
func _on_toggle_music_toggled(button_pressed: bool) -> void:
|
||||
if button_pressed:
|
||||
$SoundEffects/Music.play()
|
||||
else:
|
||||
$SoundEffects/Music.stop()
|
||||
|
||||
|
||||
func _on_ding_button_pressed() -> void:
|
||||
$SoundEffects/Ding.play()
|
||||
|
||||
|
||||
func _on_glass_button_pressed() -> void:
|
||||
$SoundEffects/Glass.play()
|
||||
|
||||
|
||||
func _on_meow_button_pressed() -> void:
|
||||
$SoundEffects/Meow.play()
|
||||
|
||||
|
||||
func _on_beeps_button_pressed() -> void:
|
||||
$SoundEffects/Beeps.play()
|
||||
|
||||
|
||||
func _on_trombone_button_pressed() -> void:
|
||||
$SoundEffects/Trombone.play()
|
||||
|
||||
|
||||
func _on_static_button_pressed() -> void:
|
||||
$SoundEffects/Static.play()
|
||||
|
||||
|
||||
func _on_whistle_button_pressed() -> void:
|
||||
$SoundEffects/Whistle.play()
|
||||
|
||||
|
||||
func _on_toggle_amplify_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 0, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_band_limiter_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 1, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_band_pass_filter_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 2, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_chorus_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 3, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_compressor_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 4, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_delay_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 5, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_distortion_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 6, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_eq_6_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 7, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_eq_10_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 8, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_eq_21_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 9, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_high_pass_filter_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 10, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_low_shelf_filter_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 11, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_notch_filter_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 12, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_panner_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 13, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_phaser_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 14, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_pitch_shift_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 15, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_reverb_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 16, button_pressed)
|
||||
|
||||
|
||||
func _on_toggle_stereo_enhance_toggled(button_pressed: bool) -> void:
|
||||
AudioServer.set_bus_effect_enabled(0, 17, button_pressed)
|
||||
1
audio/audio_effects/audio_effects.gd.uid
Normal file
1
audio/audio_effects/audio_effects.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bg21it16hc00n
|
||||
259
audio/audio_effects/audio_effects.tscn
Normal file
259
audio/audio_effects/audio_effects.tscn
Normal file
@@ -0,0 +1,259 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bj1boiwkh01mt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bg21it16hc00n" path="res://audio_effects.gd" id="1_axtfn"]
|
||||
[ext_resource type="AudioStream" uid="uid://be3q4qowdpn2i" path="res://sfx/music_monkeys_spinning_monkeys.ogg" id="2_j5kgy"]
|
||||
[ext_resource type="AudioStream" uid="uid://cm2mgrcndle8l" path="res://sfx/ding.wav" id="3_uy531"]
|
||||
[ext_resource type="AudioStream" uid="uid://cc8k4nqoujqe8" path="res://sfx/glass_breaking.wav" id="4_ec4qa"]
|
||||
[ext_resource type="AudioStream" uid="uid://3nfilwigqg8n" path="res://sfx/meow.wav" id="5_y5hbb"]
|
||||
[ext_resource type="AudioStream" uid="uid://gcbljknwc5do" path="res://sfx/negative_beeps.wav" id="6_7l1yr"]
|
||||
[ext_resource type="AudioStream" uid="uid://ij7a6y1bjbnv" path="res://sfx/sad_trombone.wav" id="7_7ug2d"]
|
||||
[ext_resource type="AudioStream" uid="uid://btpvyxliv8ldr" path="res://sfx/static.wav" id="8_ifh36"]
|
||||
[ext_resource type="AudioStream" uid="uid://biphmlacmhj1y" path="res://sfx/whistle.wav" id="9_xhiv2"]
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_kjess"]
|
||||
variation_embolden = 1.0
|
||||
spacing_glyph = 1
|
||||
|
||||
[node name="AudioEffects" type="CenterContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
script = ExtResource("1_axtfn")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="SoundEffects" type="Node" parent="."]
|
||||
|
||||
[node name="Music" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("2_j5kgy")
|
||||
volume_db = -18.0
|
||||
bus = &"Music"
|
||||
|
||||
[node name="Ding" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("3_uy531")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Glass" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("4_ec4qa")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Meow" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("5_y5hbb")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Beeps" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("6_7l1yr")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Trombone" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("7_7ug2d")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Static" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("8_ifh36")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Whistle" type="AudioStreamPlayer" parent="SoundEffects"]
|
||||
stream = ExtResource("9_xhiv2")
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="SoundEffectButtons" type="Control" parent="Control"]
|
||||
anchors_preset = 0
|
||||
offset_left = -576.0
|
||||
offset_top = -324.0
|
||||
offset_right = -576.0
|
||||
offset_bottom = -324.0
|
||||
|
||||
[node name="ToggleMusic" type="CheckButton" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 520.0
|
||||
offset_top = 56.0
|
||||
offset_right = 619.0
|
||||
offset_bottom = 87.0
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
text = "Music"
|
||||
|
||||
[node name="DingButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 64.0
|
||||
offset_top = 176.0
|
||||
offset_right = 168.0
|
||||
offset_bottom = 240.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "DING
|
||||
"
|
||||
|
||||
[node name="GlassButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 282.0
|
||||
offset_top = 176.0
|
||||
offset_right = 398.0
|
||||
offset_bottom = 240.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "GLASS
|
||||
SHATTER"
|
||||
|
||||
[node name="MeowButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 520.0
|
||||
offset_top = 176.0
|
||||
offset_right = 624.0
|
||||
offset_bottom = 240.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "MEOW"
|
||||
|
||||
[node name="BeepsButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 744.0
|
||||
offset_top = 176.0
|
||||
offset_right = 864.0
|
||||
offset_bottom = 240.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "NEGATIVE
|
||||
BEEPS
|
||||
"
|
||||
|
||||
[node name="TromboneButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 971.0
|
||||
offset_top = 176.0
|
||||
offset_right = 1106.0
|
||||
offset_bottom = 238.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "SAD
|
||||
TROMBONE"
|
||||
|
||||
[node name="StaticButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 400.0
|
||||
offset_top = 312.0
|
||||
offset_right = 504.0
|
||||
offset_bottom = 376.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "RADIO
|
||||
STATIC"
|
||||
|
||||
[node name="WhistleButton" type="Button" parent="Control/SoundEffectButtons"]
|
||||
layout_mode = 0
|
||||
offset_left = 636.0
|
||||
offset_top = 312.0
|
||||
offset_right = 748.0
|
||||
offset_bottom = 376.0
|
||||
theme_override_fonts/font = SubResource("FontVariation_kjess")
|
||||
text = "WHISTLE
|
||||
"
|
||||
|
||||
[node name="AudioEffectButtons" type="GridContainer" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = -449.0
|
||||
offset_top = 194.0
|
||||
offset_right = 460.0
|
||||
offset_bottom = 295.0
|
||||
columns = 6
|
||||
|
||||
[node name="ToggleAmplify" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Amplify"
|
||||
|
||||
[node name="ToggleBandLimiter" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "BandLimiter
|
||||
"
|
||||
|
||||
[node name="ToggleBandPassFilter" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "BandPassFilter"
|
||||
|
||||
[node name="ToggleChorus" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Chorus
|
||||
"
|
||||
|
||||
[node name="ToggleCompressor" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Compressor"
|
||||
|
||||
[node name="ToggleDelay" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Delay"
|
||||
|
||||
[node name="ToggleDistortion" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Distortion"
|
||||
|
||||
[node name="ToggleEQ6" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "EQ6 "
|
||||
|
||||
[node name="ToggleEQ10" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "EQ10"
|
||||
|
||||
[node name="ToggleEQ21" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "EQ21"
|
||||
|
||||
[node name="ToggleHighPassFilter" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "HighPassFilter"
|
||||
|
||||
[node name="ToggleLowShelfFilter" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "LowShelfFilter"
|
||||
|
||||
[node name="ToggleNotchFilter" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "NotchFilter"
|
||||
|
||||
[node name="TogglePanner" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Panner"
|
||||
|
||||
[node name="TogglePhaser" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Phaser"
|
||||
|
||||
[node name="TogglePitchShift" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "PitchShift"
|
||||
|
||||
[node name="ToggleReverb" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "Reverb"
|
||||
|
||||
[node name="ToggleStereoEnhance" type="CheckButton" parent="Control/AudioEffectButtons"]
|
||||
layout_mode = 2
|
||||
text = "StereoEnhance"
|
||||
|
||||
[connection signal="toggled" from="Control/SoundEffectButtons/ToggleMusic" to="." method="_on_toggle_music_toggled"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/DingButton" to="." method="_on_ding_button_pressed"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/GlassButton" to="." method="_on_glass_button_pressed"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/MeowButton" to="." method="_on_meow_button_pressed"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/BeepsButton" to="." method="_on_beeps_button_pressed"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/TromboneButton" to="." method="_on_trombone_button_pressed"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/StaticButton" to="." method="_on_static_button_pressed"]
|
||||
[connection signal="pressed" from="Control/SoundEffectButtons/WhistleButton" to="." method="_on_whistle_button_pressed"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleAmplify" to="." method="_on_toggle_amplify_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleBandLimiter" to="." method="_on_toggle_band_limiter_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleBandPassFilter" to="." method="_on_toggle_band_pass_filter_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleChorus" to="." method="_on_toggle_chorus_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleCompressor" to="." method="_on_toggle_compressor_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleDelay" to="." method="_on_toggle_delay_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleDistortion" to="." method="_on_toggle_distortion_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleEQ6" to="." method="_on_toggle_eq_6_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleEQ10" to="." method="_on_toggle_eq_10_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleEQ21" to="." method="_on_toggle_eq_21_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleHighPassFilter" to="." method="_on_toggle_high_pass_filter_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleLowShelfFilter" to="." method="_on_toggle_low_shelf_filter_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleNotchFilter" to="." method="_on_toggle_notch_filter_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/TogglePanner" to="." method="_on_toggle_panner_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/TogglePhaser" to="." method="_on_toggle_phaser_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/TogglePitchShift" to="." method="_on_toggle_pitch_shift_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleReverb" to="." method="_on_toggle_reverb_toggled"]
|
||||
[connection signal="toggled" from="Control/AudioEffectButtons/ToggleStereoEnhance" to="." method="_on_toggle_stereo_enhance_toggled"]
|
||||
112
audio/audio_effects/default_bus_layout.tres
Normal file
112
audio/audio_effects/default_bus_layout.tres
Normal file
@@ -0,0 +1,112 @@
|
||||
[gd_resource type="AudioBusLayout" load_steps=19 format=3 uid="uid://cfsko8byy7hwg"]
|
||||
|
||||
[sub_resource type="AudioEffectAmplify" id="AudioEffectAmplify_b00sk"]
|
||||
resource_name = "Amplify"
|
||||
volume_db = 5.0
|
||||
|
||||
[sub_resource type="AudioEffectBandLimitFilter" id="AudioEffectBandLimitFilter_grmel"]
|
||||
resource_name = "BandLimitFilter"
|
||||
cutoff_hz = 12020.0
|
||||
gain = 0.25
|
||||
|
||||
[sub_resource type="AudioEffectHighPassFilter" id="AudioEffectHighPassFilter_xkjlb"]
|
||||
resource_name = "HighPassFilter"
|
||||
|
||||
[sub_resource type="AudioEffectLowShelfFilter" id="AudioEffectLowShelfFilter_08ofu"]
|
||||
resource_name = "LowShelfFilter"
|
||||
gain = 0.25
|
||||
|
||||
[sub_resource type="AudioEffectNotchFilter" id="AudioEffectNotchFilter_gwbjt"]
|
||||
resource_name = "NotchFilter"
|
||||
|
||||
[sub_resource type="AudioEffectPanner" id="AudioEffectPanner_n8qnn"]
|
||||
resource_name = "Panner"
|
||||
pan = -1.0
|
||||
|
||||
[sub_resource type="AudioEffectPhaser" id="AudioEffectPhaser_i1syh"]
|
||||
resource_name = "Phaser"
|
||||
|
||||
[sub_resource type="AudioEffectPitchShift" id="AudioEffectPitchShift_twey2"]
|
||||
resource_name = "PitchShift"
|
||||
pitch_scale = 0.75
|
||||
|
||||
[sub_resource type="AudioEffectReverb" id="AudioEffectReverb_mr8j7"]
|
||||
resource_name = "Reverb"
|
||||
|
||||
[sub_resource type="AudioEffectStereoEnhance" id="AudioEffectStereoEnhance_43qmx"]
|
||||
resource_name = "StereoEnhance"
|
||||
pan_pullout = 2.0
|
||||
time_pullout_ms = 20.0
|
||||
surround = 0.2
|
||||
|
||||
[sub_resource type="AudioEffectBandPassFilter" id="AudioEffectBandPassFilter_0qygx"]
|
||||
resource_name = "BandPassFilter"
|
||||
|
||||
[sub_resource type="AudioEffectChorus" id="AudioEffectChorus_lb74p"]
|
||||
resource_name = "Chorus"
|
||||
|
||||
[sub_resource type="AudioEffectCompressor" id="AudioEffectCompressor_4gq7g"]
|
||||
resource_name = "Compressor"
|
||||
threshold = -24.0
|
||||
|
||||
[sub_resource type="AudioEffectDelay" id="AudioEffectDelay_hf7s3"]
|
||||
resource_name = "Delay"
|
||||
|
||||
[sub_resource type="AudioEffectDistortion" id="AudioEffectDistortion_kbjaj"]
|
||||
resource_name = "Distortion"
|
||||
pre_gain = -26.0
|
||||
drive = 0.5
|
||||
|
||||
[sub_resource type="AudioEffectEQ6" id="AudioEffectEQ6_neyrx"]
|
||||
resource_name = "EQ6"
|
||||
|
||||
[sub_resource type="AudioEffectEQ10" id="AudioEffectEQ10_6j3b2"]
|
||||
resource_name = "EQ10"
|
||||
|
||||
[sub_resource type="AudioEffectEQ21" id="AudioEffectEQ21_cvy2u"]
|
||||
resource_name = "EQ21"
|
||||
|
||||
[resource]
|
||||
bus/0/volume_db = 0.007267
|
||||
bus/0/effect/0/effect = SubResource("AudioEffectAmplify_b00sk")
|
||||
bus/0/effect/0/enabled = false
|
||||
bus/0/effect/1/effect = SubResource("AudioEffectBandLimitFilter_grmel")
|
||||
bus/0/effect/1/enabled = false
|
||||
bus/0/effect/2/effect = SubResource("AudioEffectBandPassFilter_0qygx")
|
||||
bus/0/effect/2/enabled = false
|
||||
bus/0/effect/3/effect = SubResource("AudioEffectChorus_lb74p")
|
||||
bus/0/effect/3/enabled = false
|
||||
bus/0/effect/4/effect = SubResource("AudioEffectCompressor_4gq7g")
|
||||
bus/0/effect/4/enabled = false
|
||||
bus/0/effect/5/effect = SubResource("AudioEffectDelay_hf7s3")
|
||||
bus/0/effect/5/enabled = false
|
||||
bus/0/effect/6/effect = SubResource("AudioEffectDistortion_kbjaj")
|
||||
bus/0/effect/6/enabled = false
|
||||
bus/0/effect/7/effect = SubResource("AudioEffectEQ6_neyrx")
|
||||
bus/0/effect/7/enabled = false
|
||||
bus/0/effect/8/effect = SubResource("AudioEffectEQ10_6j3b2")
|
||||
bus/0/effect/8/enabled = false
|
||||
bus/0/effect/9/effect = SubResource("AudioEffectEQ21_cvy2u")
|
||||
bus/0/effect/9/enabled = false
|
||||
bus/0/effect/10/effect = SubResource("AudioEffectHighPassFilter_xkjlb")
|
||||
bus/0/effect/10/enabled = false
|
||||
bus/0/effect/11/effect = SubResource("AudioEffectLowShelfFilter_08ofu")
|
||||
bus/0/effect/11/enabled = false
|
||||
bus/0/effect/12/effect = SubResource("AudioEffectNotchFilter_gwbjt")
|
||||
bus/0/effect/12/enabled = false
|
||||
bus/0/effect/13/effect = SubResource("AudioEffectPanner_n8qnn")
|
||||
bus/0/effect/13/enabled = false
|
||||
bus/0/effect/14/effect = SubResource("AudioEffectPhaser_i1syh")
|
||||
bus/0/effect/14/enabled = false
|
||||
bus/0/effect/15/effect = SubResource("AudioEffectPitchShift_twey2")
|
||||
bus/0/effect/15/enabled = false
|
||||
bus/0/effect/16/effect = SubResource("AudioEffectReverb_mr8j7")
|
||||
bus/0/effect/16/enabled = false
|
||||
bus/0/effect/17/effect = SubResource("AudioEffectStereoEnhance_43qmx")
|
||||
bus/0/effect/17/enabled = false
|
||||
bus/1/name = &"Music"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = 0.0
|
||||
bus/1/send = &"Master"
|
||||
BIN
audio/audio_effects/icon.webp
Normal file
BIN
audio/audio_effects/icon.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
34
audio/audio_effects/icon.webp.import
Normal file
34
audio/audio_effects/icon.webp.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ck73wxgd3mrvp"
|
||||
path="res://.godot/imported/icon.webp-e94f9a68b0f625a567a797079e4d325f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.webp"
|
||||
dest_files=["res://.godot/imported/icon.webp-e94f9a68b0f625a567a797079e4d325f.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
41
audio/audio_effects/project.godot
Normal file
41
audio/audio_effects/project.godot
Normal file
@@ -0,0 +1,41 @@
|
||||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Audio Effects"
|
||||
config/description="This is a simple demo that showcases the various Audio Effects that can be used in Godot.
|
||||
One or more Audio Effects can be toggled and applied to the playable sound effects and background music."
|
||||
run/main_scene="res://audio_effects.tscn"
|
||||
config/features=PackedStringArray("4.4", "GL Compatibility")
|
||||
run/low_processor_mode=true
|
||||
config/icon="uid://ck73wxgd3mrvp"
|
||||
|
||||
[debug]
|
||||
|
||||
gdscript/warnings/untyped_declaration=1
|
||||
|
||||
[display]
|
||||
|
||||
window/stretch/mode="canvas_items"
|
||||
window/stretch/aspect="expand"
|
||||
|
||||
[dotnet]
|
||||
|
||||
project/assembly_name="audio_effects"
|
||||
|
||||
[filesystem]
|
||||
|
||||
import/blender/enabled=false
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
0
audio/audio_effects/screenshots/.gdignore
Normal file
0
audio/audio_effects/screenshots/.gdignore
Normal file
BIN
audio/audio_effects/screenshots/audio_effects.webp
Normal file
BIN
audio/audio_effects/screenshots/audio_effects.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
BIN
audio/audio_effects/sfx/Ding.wav
Normal file
BIN
audio/audio_effects/sfx/Ding.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/Ding.wav.import
Normal file
24
audio/audio_effects/sfx/Ding.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cm2mgrcndle8l"
|
||||
path="res://.godot/imported/ding.wav-73dc34ad2d275cf91b542e84ed5d804b.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/ding.wav"
|
||||
dest_files=["res://.godot/imported/ding.wav-73dc34ad2d275cf91b542e84ed5d804b.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
audio/audio_effects/sfx/Meow.wav
Normal file
BIN
audio/audio_effects/sfx/Meow.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/Meow.wav.import
Normal file
24
audio/audio_effects/sfx/Meow.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://3nfilwigqg8n"
|
||||
path="res://.godot/imported/meow.wav-833458903e9b26678199f68915b60caa.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/meow.wav"
|
||||
dest_files=["res://.godot/imported/meow.wav-833458903e9b26678199f68915b60caa.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
audio/audio_effects/sfx/Static.wav
Normal file
BIN
audio/audio_effects/sfx/Static.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/Static.wav.import
Normal file
24
audio/audio_effects/sfx/Static.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://btpvyxliv8ldr"
|
||||
path="res://.godot/imported/static.wav-1431865c02db3b5a826e6f6115ba98d6.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/static.wav"
|
||||
dest_files=["res://.godot/imported/static.wav-1431865c02db3b5a826e6f6115ba98d6.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
audio/audio_effects/sfx/Whistle.wav
Normal file
BIN
audio/audio_effects/sfx/Whistle.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/Whistle.wav.import
Normal file
24
audio/audio_effects/sfx/Whistle.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://biphmlacmhj1y"
|
||||
path="res://.godot/imported/whistle.wav-a66bbd7475cef1955c629e21fe1da660.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/whistle.wav"
|
||||
dest_files=["res://.godot/imported/whistle.wav-a66bbd7475cef1955c629e21fe1da660.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
audio/audio_effects/sfx/glass_breaking.wav
Normal file
BIN
audio/audio_effects/sfx/glass_breaking.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/glass_breaking.wav.import
Normal file
24
audio/audio_effects/sfx/glass_breaking.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cc8k4nqoujqe8"
|
||||
path="res://.godot/imported/glass_breaking.wav-19b476463995b03cbaa50e4cacc37d4a.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/glass_breaking.wav"
|
||||
dest_files=["res://.godot/imported/glass_breaking.wav-19b476463995b03cbaa50e4cacc37d4a.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
audio/audio_effects/sfx/music_monkeys_spinning_monkeys.ogg
Normal file
BIN
audio/audio_effects/sfx/music_monkeys_spinning_monkeys.ogg
Normal file
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="oggvorbisstr"
|
||||
type="AudioStreamOggVorbis"
|
||||
uid="uid://be3q4qowdpn2i"
|
||||
path="res://.godot/imported/music_monkeys_spinning_monkeys.ogg-74afdb759b903e4e06fe6649ab9f24ad.oggvorbisstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/music_monkeys_spinning_monkeys.ogg"
|
||||
dest_files=["res://.godot/imported/music_monkeys_spinning_monkeys.ogg-74afdb759b903e4e06fe6649ab9f24ad.oggvorbisstr"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
BIN
audio/audio_effects/sfx/negative_beeps.wav
Normal file
BIN
audio/audio_effects/sfx/negative_beeps.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/negative_beeps.wav.import
Normal file
24
audio/audio_effects/sfx/negative_beeps.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://gcbljknwc5do"
|
||||
path="res://.godot/imported/negative_beeps.wav-5c5be98b770880480513f07edae75338.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/negative_beeps.wav"
|
||||
dest_files=["res://.godot/imported/negative_beeps.wav-5c5be98b770880480513f07edae75338.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
audio/audio_effects/sfx/sad_trombone.wav
Normal file
BIN
audio/audio_effects/sfx/sad_trombone.wav
Normal file
Binary file not shown.
24
audio/audio_effects/sfx/sad_trombone.wav.import
Normal file
24
audio/audio_effects/sfx/sad_trombone.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://ij7a6y1bjbnv"
|
||||
path="res://.godot/imported/sad_trombone.wav-e73cabaeffaeae461f560531f4aa8b6f.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sfx/sad_trombone.wav"
|
||||
dest_files=["res://.godot/imported/sad_trombone.wav-e73cabaeffaeae461f560531f4aa8b6f.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
Reference in New Issue
Block a user