aboutsummaryrefslogtreecommitdiff
path: root/components/original.py
diff options
context:
space:
mode:
authortassaron2017-05-29 20:40:59 -0400
committertassaron2017-05-29 20:40:59 -0400
commitd1852619dfa22833cc5fd13af17afe031ee08ece (patch)
tree484e6f165e8c1767cbffc24c53c7ba5aca2fa3ac /components/original.py
parent8dd7b7d59ab3ef3caf2bbd69dd0b2a7eb134edc7 (diff)
parent025bc2c2e6041f402b132560585b14aeed041757 (diff)
Merge branch 'feature-newgui' of https://www.github.com/IamDH4/audio-visualizer-python into feature-newgui
Diffstat (limited to 'components/original.py')
-rw-r--r--components/original.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/original.py b/components/original.py
index 4a149e2..47e53b8 100644
--- a/components/original.py
+++ b/components/original.py
@@ -32,6 +32,12 @@ class Component(__base__.Component):
self.visColor = self.RGBFromString(self.page.lineEdit_visColor.text())
self.parent.drawPreview()
+ def version(self):
+ return 1
+
+ def savePreset(self):
+ return {}
+
def previewRender(self, previewWorker):
spectrum = numpy.fromfunction(lambda x: 0.008*(x-128)**2, (255,), dtype="int16")
width = int(previewWorker.core.settings.value('outputWidth'))