summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-27 13:40:27 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-27 13:40:27 +0000
commite46d7bf9d40b883ef7194a893ad03de8d5fd32ef (patch)
treebfaa9f538be0bd10af01187ef0d54734a250236e /muse2/muse
parent4b344cf08471bcfbce5814ddead384dddb9bb86b (diff)
applied some hunks of the patch sent in by WillyFoobar
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp20
-rw-r--r--muse2/muse/master/tscale.h3
-rw-r--r--muse2/muse/steprec.h3
-rw-r--r--muse2/muse/waveevent.cpp2
-rw-r--r--muse2/muse/widgets/function_dialogs/gatetime.h2
-rw-r--r--muse2/muse/widgets/menutitleitem.h3
6 files changed, 17 insertions, 16 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp
index 54785200..8c7c89ad 100644
--- a/muse2/muse/arranger/pcanvas.cpp
+++ b/muse2/muse/arranger/pcanvas.cpp
@@ -1834,16 +1834,16 @@ void PartCanvas::drawMidiPart(QPainter& p, const QRect&, EventList* events, Midi
if (heavyDebugMsg)
{
- if (!isdrum)
- printf("DEBUG: arranger: cakewalk enabled, y-stretching from %i to %i. eventlist=%i\n",lowest_pitch, highest_pitch, events);
- else
- {
- printf("DEBUG: arranger: cakewalk enabled, y-stretching drums: ");;
- for (map<int,int>::iterator it=y_mapper.begin(); it!=y_mapper.end(); it++)
- printf("%i ", it->first);
- printf("; eventlist=%i\n",events);
- }
- }
+ if (!isdrum)
+ printf("DEBUG: arranger: cakewalk enabled, y-stretching from %i to %i. eventlist=%p\n",lowest_pitch, highest_pitch, events);
+ else
+ {
+ printf("DEBUG: arranger: cakewalk enabled, y-stretching drums: ");;
+ for (map<int,int>::iterator it=y_mapper.begin(); it!=y_mapper.end(); it++)
+ printf("%i ", it->first);
+ printf("; eventlist=%p\n",events);
+ }
+ }
}
else
{
diff --git a/muse2/muse/master/tscale.h b/muse2/muse/master/tscale.h
index 35fa39f2..d7ce86c9 100644
--- a/muse2/muse/master/tscale.h
+++ b/muse2/muse/master/tscale.h
@@ -15,8 +15,9 @@
//---------------------------------------------------------
class TScale : public View {
- double curTempo;
Q_OBJECT
+
+ double curTempo;
virtual void viewMouseMoveEvent(QMouseEvent* event);
virtual void leaveEvent(QEvent*e);
diff --git a/muse2/muse/steprec.h b/muse2/muse/steprec.h
index b09a9edd..02eab46c 100644
--- a/muse2/muse/steprec.h
+++ b/muse2/muse/steprec.h
@@ -28,9 +28,8 @@ class StepRec : public QObject
private:
QTimer* chord_timer;
- int chord_timer_set_to_tick;
+ unsigned int chord_timer_set_to_tick;
bool* note_held_down;
-
};
#endif
diff --git a/muse2/muse/waveevent.cpp b/muse2/muse/waveevent.cpp
index 867ce5c8..9f81b7e3 100644
--- a/muse2/muse/waveevent.cpp
+++ b/muse2/muse/waveevent.cpp
@@ -151,7 +151,7 @@ void WaveEventBase::write(int level, Xml& xml, const Pos& offset, bool forcePath
//off_t WaveEventBase::readAudio(SRC_STATE* src_state, off_t sfCurFrame, unsigned offset, float** buffer, int channel, int n, bool doSeek, bool overwrite)
//off_t WaveEventBase::readAudio(AudioConverter* audConv, off_t sfCurFrame, unsigned offset, float** buffer, int channel, int n, bool doSeek, bool overwrite)
// p3.3.33
-void WaveEventBase::readAudio(WavePart* part, unsigned offset, float** buffer, int channel, int n, bool doSeek, bool overwrite)
+void WaveEventBase::readAudio(WavePart* /*part*/, unsigned offset, float** buffer, int channel, int n, bool /*doSeek*/, bool overwrite)
{
// Added by Tim. p3.3.17
#ifdef WAVEEVENT_DEBUG_PRC
diff --git a/muse2/muse/widgets/function_dialogs/gatetime.h b/muse2/muse/widgets/function_dialogs/gatetime.h
index d2555872..f8f35ffd 100644
--- a/muse2/muse/widgets/function_dialogs/gatetime.h
+++ b/muse2/muse/widgets/function_dialogs/gatetime.h
@@ -11,7 +11,6 @@
#include "ui_gatetimebase.h"
class QButtonGroup;
-class QDialog;
class Xml;
//---------------------------------------------------------
@@ -21,7 +20,6 @@ class Xml;
class GateTime : public QDialog, public Ui::GateTimeBase {
private:
Q_OBJECT
-
QButtonGroup *rangeGroup;
protected slots:
diff --git a/muse2/muse/widgets/menutitleitem.h b/muse2/muse/widgets/menutitleitem.h
index 016d4663..0c345ffe 100644
--- a/muse2/muse/widgets/menutitleitem.h
+++ b/muse2/muse/widgets/menutitleitem.h
@@ -15,6 +15,9 @@
//---------------------------------------------------------
class MenuTitleItem : public QWidgetAction {
+ private:
+ Q_OBJECT
+
QString s;
public: