summaryrefslogtreecommitdiff
path: root/klangfarb
diff options
context:
space:
mode:
authorJacob Lee <jacob@unabridgedsoftware.com>2021-10-28 08:54:01 -0400
committerJacob Lee <jacob@unabridgedsoftware.com>2021-10-28 08:54:01 -0400
commit0db43948f5c1b2f66c81577c37807bc80de8f922 (patch)
treea0e2c297b8f656a010cef280a0231a9c0eb9ab66 /klangfarb
parentffacb1c96b02507f1bdd612bd71b6bcc7d114505 (diff)
Rename MonoBuffer to SineWave and clean up rust code a little bit
Diffstat (limited to 'klangfarb')
-rw-r--r--klangfarb/SineWave.gdns (renamed from klangfarb/MonoBuffer.gdns)4
-rwxr-xr-xklangfarb/libklangfarbrs.sobin20147240 -> 20146328 bytes
-rw-r--r--klangfarb/main.gd4
3 files changed, 4 insertions, 4 deletions
diff --git a/klangfarb/MonoBuffer.gdns b/klangfarb/SineWave.gdns
index e551128..e220a2e 100644
--- a/klangfarb/MonoBuffer.gdns
+++ b/klangfarb/SineWave.gdns
@@ -3,6 +3,6 @@
[ext_resource path="res://klangfarbrs.gdnlib" type="GDNativeLibrary" id=1]
[resource]
-resource_name = "MonoBuffer"
-class_name = "MonoBuffer"
+resource_name = "SineWave"
+class_name = "SineWave"
library = ExtResource( 1 )
diff --git a/klangfarb/libklangfarbrs.so b/klangfarb/libklangfarbrs.so
index 280cd61..5dfe32e 100755
--- a/klangfarb/libklangfarbrs.so
+++ b/klangfarb/libklangfarbrs.so
Binary files differ
diff --git a/klangfarb/main.gd b/klangfarb/main.gd
index 806850d..568af36 100644
--- a/klangfarb/main.gd
+++ b/klangfarb/main.gd
@@ -1,8 +1,8 @@
extends AudioStreamPlayer
var playback: AudioStreamPlayback = null
-var MonoBuffer = preload("res://MonoBuffer.gdns")
-var buffer = MonoBuffer.new()
+var SineWave = preload("res://SineWave.gdns")
+var buffer = SineWave.new()
var duration = 3
var samples = buffer.frames(440.0, 44100.0, duration)
var sample_count = samples.size()