summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-11-03 01:03:08 +0000
committerTim E. Real <termtech@rogers.com>2010-11-03 01:03:08 +0000
commit49720ad168e0abef844f10baf6d4f3968eb15318 (patch)
treeae71b0f5c66f46e60b8d6afb1d8b1379cd7f8aa1 /muse2/synti
parentba7a03030045602ce55c47a20a63fd72cfe10f47 (diff)
Removed mpevent(.h, .cpp) and evdata.h from /libsynti, conflicting with copies in /muse,
causing crashes. Version in /muse is newer. Should only be one version.
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/fluid/fluidgui.cpp4
-rw-r--r--muse2/synti/fluidsynth/fluidsynti.cpp10
-rw-r--r--muse2/synti/fluidsynth/fluidsynti.h3
-rw-r--r--muse2/synti/libsynti/CMakeLists.txt3
-rw-r--r--muse2/synti/libsynti/evdata.h.OLD (renamed from muse2/synti/libsynti/evdata.h)0
-rw-r--r--muse2/synti/libsynti/gui.cpp3
-rw-r--r--muse2/synti/libsynti/mpevent.cpp.OLD (renamed from muse2/synti/libsynti/mpevent.cpp)0
-rw-r--r--muse2/synti/libsynti/mpevent.h.OLD (renamed from muse2/synti/libsynti/mpevent.h)0
-rw-r--r--muse2/synti/organ/organ.cpp3
-rw-r--r--muse2/synti/organ/organgui.h3
-rw-r--r--muse2/synti/simpledrums/simpledrums.cpp3
-rw-r--r--muse2/synti/simpledrums/simpledrums.h3
-rw-r--r--muse2/synti/simpledrums/simpledrumsgui.cpp3
-rw-r--r--muse2/synti/simpledrums2/simpledrums.cpp3
-rw-r--r--muse2/synti/simpledrums2/simpledrums.h3
-rw-r--r--muse2/synti/simpledrums2/simpledrumsgui.cpp7
16 files changed, 27 insertions, 24 deletions
diff --git a/muse2/synti/fluid/fluidgui.cpp b/muse2/synti/fluid/fluidgui.cpp
index a94ae9ea..e5677bcb 100644
--- a/muse2/synti/fluid/fluidgui.cpp
+++ b/muse2/synti/fluid/fluidgui.cpp
@@ -65,9 +65,7 @@ void FLUIDGui::loadFont()
buffer[k++] = 0x00; // fluid
buffer[k++] = 0x01; // load sound font
strcpy((char*)(&buffer[k]), path);
- // FIXME By Tim. This is crashing, after the conversion to QT4 and cmake.
- printf("MusE FIXME: FLUIDGui::loadFont(): sendSysex disabled.\n");
-/// sendSysex(buffer, len);
+ sendSysex(buffer, len);
}
//---------------------------------------------------------
diff --git a/muse2/synti/fluidsynth/fluidsynti.cpp b/muse2/synti/fluidsynth/fluidsynti.cpp
index f14fc90b..d130e741 100644
--- a/muse2/synti/fluidsynth/fluidsynti.cpp
+++ b/muse2/synti/fluidsynth/fluidsynti.cpp
@@ -14,7 +14,6 @@
#include <iostream>
#include <qfileinfo.h>
-
FluidCtrl FluidSynth::fluidCtrl[] = {
//{ "Expression", CTRL_EXPRESSION, 0, 127 },
//{ "Sustain", CTRL_SUSTAIN, 0, 127 },
@@ -164,7 +163,7 @@ void FluidSynth::processMessages()
else
{
if (FS_DEBUG)
- printf("FluidSynth::process(): unknown event, type: %d\n", ev.type());
+ printf("FluidSynth::processMessages(): unknown event, type: %d\n", ev.type());
}
}
@@ -684,9 +683,7 @@ void FluidSynth::sendChannelData()
*(chdptr+1) = i; //Channel nr
chdptr += chunk_size;
}
- // FIXME By Tim. This is crashing, after the conversion to QT4 and cmake.
- printf("MusE FIXME: FluidSynth::sendChannelData() sendSysex disabled.\n");
-/// sendSysex(chdata_length, chdata);
+ sendSysex(chdata_length, chdata);
// Send drum channel info afterwards (later addition, not very neat, but works...)
int drumchdata_length = FS_MAX_NR_OF_CHANNELS + 1; //1 byte for the command, one byte for each channel
@@ -699,7 +696,8 @@ void FluidSynth::sendChannelData()
*drumchdataptr = channels[i].drumchannel;
}
// FIXME By Tim. This is crashing, after the conversion to QT4 and cmake.
-/// sendSysex(drumchdata_length, drumchdata);
+ //usleep(1000);
+ sendSysex(drumchdata_length, drumchdata);
}
//---------------------------------------------------------
diff --git a/muse2/synti/fluidsynth/fluidsynti.h b/muse2/synti/fluidsynth/fluidsynti.h
index 10b96b9d..c187798d 100644
--- a/muse2/synti/fluidsynth/fluidsynti.h
+++ b/muse2/synti/fluidsynth/fluidsynti.h
@@ -17,7 +17,8 @@
#include "fluidsynthgui.h"
#include "libsynti/mess.h"
#include "muse/debug.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "muse/midictrl.h"
#define FS_DEBUG_DATA 0 //Turn on/off debug print of midi data sent to fluidsynth
diff --git a/muse2/synti/libsynti/CMakeLists.txt b/muse2/synti/libsynti/CMakeLists.txt
index 10154a93..6f72b31c 100644
--- a/muse2/synti/libsynti/CMakeLists.txt
+++ b/muse2/synti/libsynti/CMakeLists.txt
@@ -28,7 +28,8 @@ add_library(synti
mono.cpp
poly.cpp
# midievent.cpp
- mpevent.cpp
+ # Removed. Causing conflicts with /muse/mpevent
+ ## mpevent.cpp
)
#
diff --git a/muse2/synti/libsynti/evdata.h b/muse2/synti/libsynti/evdata.h.OLD
index 4e529bec..4e529bec 100644
--- a/muse2/synti/libsynti/evdata.h
+++ b/muse2/synti/libsynti/evdata.h.OLD
diff --git a/muse2/synti/libsynti/gui.cpp b/muse2/synti/libsynti/gui.cpp
index b5faf54a..23a18fee 100644
--- a/muse2/synti/libsynti/gui.cpp
+++ b/muse2/synti/libsynti/gui.cpp
@@ -94,8 +94,7 @@ void MessGui::sendSysex(unsigned char* p, int n)
{
// MidiPlayEvent pe(0, 0, ME_SYSEX, p, n);
// sendEvent(pe);
-
- printf("MusE TESTING: MessGui::sendSysex(): sendEvent\n");
+
sendEvent(MidiPlayEvent(0, 0, ME_SYSEX, p, n));
}
diff --git a/muse2/synti/libsynti/mpevent.cpp b/muse2/synti/libsynti/mpevent.cpp.OLD
index 482bc952..482bc952 100644
--- a/muse2/synti/libsynti/mpevent.cpp
+++ b/muse2/synti/libsynti/mpevent.cpp.OLD
diff --git a/muse2/synti/libsynti/mpevent.h b/muse2/synti/libsynti/mpevent.h.OLD
index 8568169f..8568169f 100644
--- a/muse2/synti/libsynti/mpevent.h
+++ b/muse2/synti/libsynti/mpevent.h.OLD
diff --git a/muse2/synti/organ/organ.cpp b/muse2/synti/organ/organ.cpp
index 2dede8de..0ab7880d 100644
--- a/muse2/synti/organ/organ.cpp
+++ b/muse2/synti/organ/organ.cpp
@@ -14,7 +14,8 @@
#include <stdio.h>
#include "muse/midi.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "organ.h"
#include "organgui.h"
diff --git a/muse2/synti/organ/organgui.h b/muse2/synti/organ/organgui.h
index 9f133de7..d612eece 100644
--- a/muse2/synti/organ/organgui.h
+++ b/muse2/synti/organ/organgui.h
@@ -12,7 +12,8 @@
#include "organguibase.h"
#include "organ.h"
#include "libsynti/gui.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
class QSignalMapper;
diff --git a/muse2/synti/simpledrums/simpledrums.cpp b/muse2/synti/simpledrums/simpledrums.cpp
index 8bca91a4..7c3a4605 100644
--- a/muse2/synti/simpledrums/simpledrums.cpp
+++ b/muse2/synti/simpledrums/simpledrums.cpp
@@ -12,7 +12,8 @@
#include "muse/midictrl.h"
#include "muse/midi.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "simpledrums.h"
#include <qstring.h>
#include <samplerate.h>
diff --git a/muse2/synti/simpledrums/simpledrums.h b/muse2/synti/simpledrums/simpledrums.h
index 9d0d1331..47a71ca6 100644
--- a/muse2/synti/simpledrums/simpledrums.h
+++ b/muse2/synti/simpledrums/simpledrums.h
@@ -18,7 +18,8 @@
#include <Qt3Support>
#include "libsynti/mess.h"
#include "common.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "simpledrumsgui.h"
#include "ssplugin.h"
diff --git a/muse2/synti/simpledrums/simpledrumsgui.cpp b/muse2/synti/simpledrums/simpledrumsgui.cpp
index 03fa658c..3ba474af 100644
--- a/muse2/synti/simpledrums/simpledrumsgui.cpp
+++ b/muse2/synti/simpledrums/simpledrumsgui.cpp
@@ -24,7 +24,8 @@
#include <Q3VBoxLayout>
#include "simpledrumsgui.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "muse/midi.h"
#include "ssplugingui.h"
diff --git a/muse2/synti/simpledrums2/simpledrums.cpp b/muse2/synti/simpledrums2/simpledrums.cpp
index 242fd8dd..523b0d98 100644
--- a/muse2/synti/simpledrums2/simpledrums.cpp
+++ b/muse2/synti/simpledrums2/simpledrums.cpp
@@ -12,7 +12,8 @@
#include "muse/midictrl.h"
#include "muse/midi.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "simpledrums.h"
// #include <qstring.h>
#include <samplerate.h>
diff --git a/muse2/synti/simpledrums2/simpledrums.h b/muse2/synti/simpledrums2/simpledrums.h
index f9463800..7aab4ed3 100644
--- a/muse2/synti/simpledrums2/simpledrums.h
+++ b/muse2/synti/simpledrums2/simpledrums.h
@@ -15,7 +15,8 @@
#include <sndfile.h>
#include "libsynti/mess.h"
#include "common.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "simpledrumsgui.h"
#include "ssplugin.h"
diff --git a/muse2/synti/simpledrums2/simpledrumsgui.cpp b/muse2/synti/simpledrums2/simpledrumsgui.cpp
index 4b0b1874..79194eed 100644
--- a/muse2/synti/simpledrums2/simpledrumsgui.cpp
+++ b/muse2/synti/simpledrums2/simpledrumsgui.cpp
@@ -20,7 +20,8 @@
#include <QMessageBox>
#include "simpledrumsgui.h"
-#include "libsynti/mpevent.h"
+//#include "libsynti/mpevent.h"
+#include "muse/mpevent.h"
#include "muse/midi.h"
#include "ssplugingui.h"
@@ -717,9 +718,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel)
d[1] = (byte) channel;
d[2] = (byte) filename.length();
memcpy(d+3, filename.toLatin1().data(), filename.length()+1);
- // FIXME By Tim. This is crashing, after the conversion to QT4 and cmake.
- printf("MusE FIXME: SimpleSynthGui::loadSampleDialogue() sendSysex disabled.\n");
-/// sendSysex(d, l);
+ sendSysex(d, l);
}
}