Skip to content

Commit

Permalink
small changes to synth control
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Feb 21, 2013
1 parent a640fcf commit 03eb808
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion awl/aslider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Awl {
//---------------------------------------------------------

AbstractSlider::AbstractSlider(QWidget* parent)
: QWidget(parent), _scaleColor(Qt::black), _scaleValueColor(Qt::blue)
: QWidget(parent), _scaleColor(Qt::darkGray), _scaleValueColor(Qt::blue)
{
_id = 0;
_value = 0.5;
Expand Down
3 changes: 2 additions & 1 deletion awl/mslider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void MeterSlider::paintEvent(QPaintEvent* ev)
//---------------------------------------------------

int mw = _meterWidth / _channel;
int x = 20;
int x = 18;
int y1 = kh / 2;
int y3 = h - y1;

Expand Down Expand Up @@ -207,6 +207,7 @@ void MeterSlider::paintEvent(QPaintEvent* ev)

x += mw;
}
x += 4;

// optimize common case:
if (ev->rect() == QRect(20, kh/2, _meterWidth-1, mh))
Expand Down
1 change: 0 additions & 1 deletion fluid/chorus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ Chorus::Chorus(float sr)
void Chorus::reset()
{
memset(chorusbuf, 0, MAX_SAMPLES * sizeof(*chorusbuf));
number_blocks = 0;
number_blocks = FLUID_CHORUS_DEFAULT_N;
level = FLUID_CHORUS_DEFAULT_LEVEL;
speed_Hz = FLUID_CHORUS_DEFAULT_SPEED;
Expand Down
8 changes: 7 additions & 1 deletion mscore/synthcontrol.ui
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
<number>2</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
Expand Down Expand Up @@ -324,6 +324,9 @@
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="chorusSpeedBox">
<property name="suffix">
<string extracomment="short for hertz (frequency)">hz</string>
</property>
<property name="maximum">
<double>5.000000000000000</double>
</property>
Expand Down Expand Up @@ -354,6 +357,9 @@
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="chorusDepthBox">
<property name="suffix">
<string extracomment="short for millisecond">ms</string>
</property>
<property name="maximum">
<double>10.000000000000000</double>
</property>
Expand Down

0 comments on commit 03eb808

Please sign in to comment.