added right-side-knobs and mode-select buttons
This commit is contained in:
14
knobs.py
14
knobs.py
@ -6,7 +6,7 @@ import random
|
||||
|
||||
class Knobs:
|
||||
|
||||
def __init__(self, gui, is_left_side=True):
|
||||
def __init__(self, gui, knob_names, is_left_side=True):
|
||||
|
||||
self.gui = gui
|
||||
self.knobs_surface = pygame.Surface((gui.screenW, gui.screenH), pygame.SRCALPHA)
|
||||
@ -15,20 +15,10 @@ class Knobs:
|
||||
self.fade_speed = 5
|
||||
self.fade_in = False
|
||||
self.fade_out = False
|
||||
self.knob_names = knob_names
|
||||
|
||||
self.is_left_side = is_left_side
|
||||
|
||||
knob_names = [
|
||||
'Delay Time',
|
||||
'Delay Vol',
|
||||
'Reverb Wet',
|
||||
'Reverb Size',
|
||||
'Filter Freq',
|
||||
'Distortion',
|
||||
'Detune',
|
||||
'Gain'
|
||||
]
|
||||
|
||||
# Create and position the knobs
|
||||
self.knobs_radius = self.gui.screenW / 25
|
||||
knobs_spacing = self.knobs_radius * 2
|
||||
|
||||
Reference in New Issue
Block a user