From 720ec920852a4d124fe004edae314ae14364a98c Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Tue, 26 Oct 2021 14:38:42 -0400 Subject: Scorched Earth --- .../icon.png-487276ed1e3a0c39cad0279d744ee560.md5 | 3 +++ .../icon.png-487276ed1e3a0c39cad0279d744ee560.stex | Bin 0 -> 3413 bytes klangfarb/Main.gdns | 6 +++--- klangfarb/Main.tscn | 6 +++++- klangfarb/klangfarbrs.gdnlib | 14 ++++++++++++++ klangfarb/libklangfarbrs.gdnlib | 14 -------------- klangfarb/libklangfarbrs.so | Bin 19917392 -> 19936592 bytes klangfarb/main.gd | 17 +++++++++++++++++ 8 files changed, 42 insertions(+), 18 deletions(-) create mode 100644 klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 create mode 100644 klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex create mode 100644 klangfarb/klangfarbrs.gdnlib delete mode 100644 klangfarb/libklangfarbrs.gdnlib mode change 100644 => 100755 klangfarb/libklangfarbrs.so create mode 100644 klangfarb/main.gd (limited to 'klangfarb') diff --git a/klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 b/klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 new file mode 100644 index 0000000..7b61c3e --- /dev/null +++ b/klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 @@ -0,0 +1,3 @@ +source_md5="47313fa4c47a9963fddd764e1ec6e4a8" +dest_md5="2ded9e7f9060e2b530aab678b135fc5b" + diff --git a/klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 0000000..3ca6461 Binary files /dev/null and b/klangfarb/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/klangfarb/Main.gdns b/klangfarb/Main.gdns index 673e307..e551128 100644 --- a/klangfarb/Main.gdns +++ b/klangfarb/Main.gdns @@ -1,8 +1,8 @@ [gd_resource type="NativeScript" load_steps=2 format=2] -[ext_resource path="res://libklangfarbrs.gdnlib" type="GDNativeLibrary" id=1] +[ext_resource path="res://klangfarbrs.gdnlib" type="GDNativeLibrary" id=1] [resource] -resource_name = "Synth" -class_name = "Synth" +resource_name = "MonoBuffer" +class_name = "MonoBuffer" library = ExtResource( 1 ) diff --git a/klangfarb/Main.tscn b/klangfarb/Main.tscn index bba01a7..9c58bfd 100644 --- a/klangfarb/Main.tscn +++ b/klangfarb/Main.tscn @@ -1,6 +1,10 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=3 format=2] [ext_resource path="res://Main.gdns" type="Script" id=1] +[ext_resource path="res://main.gd" type="Script" id=2] [node name="Node" type="Node"] script = ExtResource( 1 ) + +[node name="Node" type="Node" parent="."] +script = ExtResource( 2 ) diff --git a/klangfarb/klangfarbrs.gdnlib b/klangfarb/klangfarbrs.gdnlib new file mode 100644 index 0000000..a7f0183 --- /dev/null +++ b/klangfarb/klangfarbrs.gdnlib @@ -0,0 +1,14 @@ +[entry] + +X11.64="res://libklangfarbrs.so" + +[dependencies] + +X11.64=[ ] + +[general] + +singleton=false +load_once=true +symbol_prefix="godot_" +reloadable=true diff --git a/klangfarb/libklangfarbrs.gdnlib b/klangfarb/libklangfarbrs.gdnlib deleted file mode 100644 index 6cfb13a..0000000 --- a/klangfarb/libklangfarbrs.gdnlib +++ /dev/null @@ -1,14 +0,0 @@ -[general] - -singleton=false -load_once=true -symbol_prefix="godot_" -reloadable=true - -[entry] - -X11.64="res://libklangfarbrs.so" - -[dependencies] - -X11.64=[ ] diff --git a/klangfarb/libklangfarbrs.so b/klangfarb/libklangfarbrs.so old mode 100644 new mode 100755 index d428f9c..2ca0b85 Binary files a/klangfarb/libklangfarbrs.so and b/klangfarb/libklangfarbrs.so differ diff --git a/klangfarb/main.gd b/klangfarb/main.gd new file mode 100644 index 0000000..96d8cb5 --- /dev/null +++ b/klangfarb/main.gd @@ -0,0 +1,17 @@ +extends Node + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" +onready var data = preload("res://klangfarbrs.gdnlib") +# var buffer = MonoBuffer.new() + +# Called when the node enters the scene tree for the first time. +func _ready(): + print("Poop", data.frames()); + + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass -- cgit v1.2.3