Browse Source

Fix skin knobs bounds

tags/1.9.4
falkTX 11 years ago
parent
commit
ef2e3b21d2
2 changed files with 16 additions and 10 deletions
  1. +6
    -5
      source/carla_skin.py
  2. +10
    -5
      source/carla_widgets.py

+ 6
- 5
source/carla_skin.py View File

@@ -167,12 +167,13 @@ class AbstractPluginSlot(QFrame):
self.peak_out.setChannels(self.fPeaksOutputCount)
self.peak_out.setOrientation(self.peak_out.HORIZONTAL)

if gCarla.host is None:
return

for paramIndex, paramWidget in self.fParameterList:
paramWidget.setValue(gCarla.host.get_internal_parameter_value(self.fPluginId, paramIndex))
paramWidget.realValueChanged.connect(self.slot_parameterValueChanged)

if paramIndex >= 0 and gCarla.host is not None:
paramWidget.setValue(gCarla.host.get_current_parameter_value(self.fPluginId, paramIndex))

#------------------------------------------------------------------

def getFixedHeight(self):
@@ -819,8 +820,8 @@ class PluginSlot_BasicFX(AbstractPluginSlot):
self.ui.dial_vol.setPixmap(3)
self.ui.dial_vol.setLabel("Volume")
self.ui.dial_vol.setCustomPaintMode(PixmapDial.CUSTOM_PAINT_MODE_CARLA_VOL)
self.ui.dial_drywet.setMinimum(0.0)
self.ui.dial_drywet.setMaximum(1.27)
self.ui.dial_vol.setMinimum(0.0)
self.ui.dial_vol.setMaximum(1.27)
#self.ui.dial_vol.forceWhiteLabelGradientText()

self.fParameterList.append([PARAMETER_DRYWET, self.ui.dial_drywet])


+ 10
- 5
source/carla_widgets.py View File

@@ -1152,31 +1152,36 @@ class PluginEdit(QDialog):
def slot_dryWetChanged(self, value):
if gCarla.host is not None:
gCarla.host.set_drywet(self.fPluginId, value)
if self.fRealParent is not None:
self.fRealParent.parameterValueChanged(PARAMETER_DRYWET, value)

@pyqtSlot(int)
def slot_volumeChanged(self, value):
if gCarla.host is not None:
gCarla.host.set_volume(self.fPluginId, value)
if self.fRealParent is not None:
self.fRealParent.parameterValueChanged(PARAMETER_VOLUME, value)

@pyqtSlot(int)
def slot_balanceLeftChanged(self, value):
if gCarla.host is not None:
gCarla.host.set_balance_left(self.fPluginId, value)
if self.fRealParent is not None:
self.fRealParent.parameterValueChanged(PARAMETER_BALANCE_LEFT, value)

@pyqtSlot(int)
def slot_balanceRightChanged(self, value):
if gCarla.host is not None:
gCarla.host.set_balance_right(self.fPluginId, value)
if self.fRealParent is not None:
self.fRealParent.parameterValueChanged(PARAMETER_BALANCE_RIGHT, value)

@pyqtSlot(int)
def slot_panChanged(self, value):
if gCarla.host is not None:
gCarla.host.set_panning(self.fPluginId, value)

@pyqtSlot(int)
def slot_panningChanged(self, value):
if gCarla.host is not None:
gCarla.host.set_panning(self.fPluginId, value)
if self.fRealParent is not None:
self.fRealParent.parameterValueChanged(PARAMETER_PANNING, value)

@pyqtSlot(int)
def slot_ctrlChannelChanged(self, value):


Loading…
Cancel
Save