Browse Source

Fix bigmeter

tags/1.9.4
falkTX 11 years ago
parent
commit
b68911e8e9
3 changed files with 3 additions and 4 deletions
  1. +1
    -1
      source/modules/native-plugins/bigmeter.cpp
  2. +1
    -2
      source/modules/native-plugins/resources/bigmeter-ui
  3. +1
    -1
      source/modules/native-plugins/resources/notes-ui

+ 1
- 1
source/modules/native-plugins/bigmeter.cpp View File

@@ -32,7 +32,7 @@ class BigMeterPlugin : public NativePluginAndUiClass
public:
BigMeterPlugin(const NativeHostDescriptor* const host)
: NativePluginAndUiClass(host, "/bigmeter-ui"),
fColor(0),
fColor(1),
fOutLeft(0.0f),
fOutRight(0.0f)
{


+ 1
- 2
source/modules/native-plugins/resources/bigmeter-ui View File

@@ -19,7 +19,6 @@
# ------------------------------------------------------------------------------------------------------------
# Imports (Global)

from numpy import rint
from sys import exit

# -----------------------------------------------------------------------
@@ -57,7 +56,7 @@ class DistrhoUIBigMeter(DigitalPeakMeter, ExternalUI):

def d_parameterChanged(self, index, value):
if index == 0:
color = rint(value)+1
color = int(value)

if color not in (self.GREEN, self.BLUE):
return


+ 1
- 1
source/modules/native-plugins/resources/notes-ui View File

@@ -228,7 +228,7 @@ class DistrhoUINotes(QWidget, ExternalUI):

#--------------- main ------------------
if __name__ == '__main__':
app = CarlaApplication()
app = CarlaApplication("Notes")
#app...
gui = DistrhoUINotes()
exit(app.exec_())

Loading…
Cancel
Save