diff options
Diffstat (limited to 'klangfarb')
-rw-r--r-- | klangfarb/Power.gd | 11 | ||||
-rw-r--r-- | klangfarb/assets/moog.JPG | bin | 0 -> 159647 bytes | |||
-rw-r--r-- | klangfarb/assets/moog.JPG.import | 34 | ||||
-rw-r--r-- | klangfarb/main.gd | 3 |
4 files changed, 48 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 0000000..b51fc89 --- /dev/null +++ b/klangfarb/assets/moog.JPG 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()) |