summaryrefslogtreecommitdiff
path: root/klangfarb
diff options
context:
space:
mode:
authorGrant Shangreaux <grant@unabridgedsoftware.com>2021-10-30 23:28:56 -0500
committerGrant Shangreaux <grant@unabridgedsoftware.com>2021-10-30 23:28:56 -0500
commitb9559897c05b8c2f67e34372685952d586af5c3d (patch)
tree60a5c8c21749e3de811002692e797f73f102f518 /klangfarb
parent6d9bfcbc4ab0575e6cbf5a79d072431d7c7e712e (diff)
Add: restructured Osc class preparing for more wave forms
Diffstat (limited to 'klangfarb')
-rw-r--r--klangfarb/Osc.gdns (renamed from klangfarb/SineWave.gdns)4
-rw-r--r--klangfarb/main.gd4
2 files changed, 4 insertions, 4 deletions
diff --git a/klangfarb/SineWave.gdns b/klangfarb/Osc.gdns
index e220a2e..65d44ef 100644
--- a/klangfarb/SineWave.gdns
+++ b/klangfarb/Osc.gdns
@@ -3,6 +3,6 @@
[ext_resource path="res://klangfarbrs.gdnlib" type="GDNativeLibrary" id=1]
[resource]
-resource_name = "SineWave"
-class_name = "SineWave"
+resource_name = "Osc"
+class_name = "Osc"
library = ExtResource( 1 )
diff --git a/klangfarb/main.gd b/klangfarb/main.gd
index fb29c8c..f91dbb7 100644
--- a/klangfarb/main.gd
+++ b/klangfarb/main.gd
@@ -4,9 +4,9 @@ extends AudioStreamPlayer
export(float, 20, 8000, 10) var freq = 440.0
# load the GDNative script connected to the rust lib
-var SineWave = preload("res://SineWave.gdns")
+var Osc = preload("res://Osc.gdns")
# make an instance of our one "class" in rust lib
-var wave = SineWave.new()
+var wave = Osc.new()
# initialize the Godot stream we fill up with samples
var playback: AudioStreamPlayback = null