From 009bbfc41b18a795b3363dd90654a5d59cdf6d1d Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Fri, 10 Dec 2021 13:42:26 -0600 Subject: Add: nonsense --- klangfarb/Power.gd | 11 +++++++++++ klangfarb/assets/moog.JPG | Bin 0 -> 159647 bytes klangfarb/assets/moog.JPG.import | 34 ++++++++++++++++++++++++++++++++++ klangfarb/main.gd | 3 +++ 4 files changed, 48 insertions(+) create mode 100644 klangfarb/Power.gd create mode 100644 klangfarb/assets/moog.JPG create mode 100644 klangfarb/assets/moog.JPG.import (limited to 'klangfarb') diff --git a/klangfarb/Power.gd b/klangfarb/Power.gd new file mode 100644 index 0000000..6442fe5 --- /dev/null +++ b/klangfarb/Power.gd @@ -0,0 +1,11 @@ +extends Control + +func _gui_input(event): + if event is InputEventMouseButton: + if event.button_index == BUTTON_LEFT and event.pressed: + print("I've been clicked D:") + get_parent().toggle_playback() + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. diff --git a/klangfarb/assets/moog.JPG b/klangfarb/assets/moog.JPG new file mode 100644 index 0000000..b51fc89 Binary files /dev/null and b/klangfarb/assets/moog.JPG differ diff --git a/klangfarb/assets/moog.JPG.import b/klangfarb/assets/moog.JPG.import new file mode 100644 index 0000000..56836c1 --- /dev/null +++ b/klangfarb/assets/moog.JPG.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/moog.JPG-f233f2842c5d6fb78dc4e01163dddabf.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/moog.JPG" +dest_files=[ "res://.import/moog.JPG-f233f2842c5d6fb78dc4e01163dddabf.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/klangfarb/main.gd b/klangfarb/main.gd index 433342e..46c8c0b 100644 --- a/klangfarb/main.gd +++ b/klangfarb/main.gd @@ -97,3 +97,6 @@ func _input(event): # phasor_bend.y = event.position.y / 600 fm_multiplier = 600 / (event.position.y + 1) synth.fm_frequency(fm_multiplier * freq) + +func toggle_playback(): + self._set_playing(!self.is_playing()) -- cgit v1.2.3