summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/deicsonze-OLD/deicsonze.cpp4
-rw-r--r--muse2/synti/deicsonze/deicsonze.cpp30
-rw-r--r--muse2/synti/deicsonze/deicsonzegui.cpp22
-rw-r--r--muse2/synti/deicsonze2/deicsonze2.cpp30
-rw-r--r--muse2/synti/fluid/fluidgui.cpp2
-rw-r--r--muse2/synti/fluidsynth/fluidsynthgui.cpp16
-rw-r--r--muse2/synti/fluidsynth/fluidsynti.cpp2
-rw-r--r--muse2/synti/simpledrums/simpledrums.cpp26
-rw-r--r--muse2/synti/simpledrums/simpledrumsgui.cpp10
-rw-r--r--muse2/synti/simpledrums/ssplugin.cpp14
-rw-r--r--muse2/synti/simpledrums/ssplugingui.cpp2
-rw-r--r--muse2/synti/simpledrums2/simpledrums.cpp32
-rw-r--r--muse2/synti/simpledrums2/simpledrumsgui.cpp10
-rw-r--r--muse2/synti/simpledrums2/ssplugin.cpp14
-rw-r--r--muse2/synti/simpledrums2/ssplugingui.cpp2
-rw-r--r--muse2/synti/vam/vamgui.cpp4
16 files changed, 110 insertions, 110 deletions
diff --git a/muse2/synti/deicsonze-OLD/deicsonze.cpp b/muse2/synti/deicsonze-OLD/deicsonze.cpp
index 4eea4102..63c96deb 100644
--- a/muse2/synti/deicsonze-OLD/deicsonze.cpp
+++ b/muse2/synti/deicsonze-OLD/deicsonze.cpp
@@ -648,10 +648,10 @@ void DeicsOnze::loadSutulaPresets()
QString(INSTALL_NAME));
presetPath += "/presets/deicsonze/ARCH_ALIN";
- file = fopen (presetPath.latin1(), "rt");
+ file = fopen (presetPath.toLatin1(), "rt");
if (file == NULL) {
printf("can't open ");
- printf("%s",presetPath.latin1());
+ printf("%s",presetPath.toLatin1());
printf("\n");
return;
}
diff --git a/muse2/synti/deicsonze/deicsonze.cpp b/muse2/synti/deicsonze/deicsonze.cpp
index 136275f1..519a7f05 100644
--- a/muse2/synti/deicsonze/deicsonze.cpp
+++ b/muse2/synti/deicsonze/deicsonze.cpp
@@ -1254,10 +1254,10 @@ void DeicsOnze::loadSet(QString fileName) {
_gui->writeEvent(evSysexUpdateGuiSet);
}
else printf("unsupported *.dei file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -1292,10 +1292,10 @@ void DeicsOnze::loadSutulaPresets()
QString presetPath("/home/a-lin/sources/svnMusEDev/lmuse/muse/synti/deicsonze/ARCH_ALIN");
- file = fopen (presetPath.toLatin1().data(), "rt");
+ file = fopen (presetPath.toLatin1().constData(), "rt");
if (file == NULL) {
printf("can't open ");
- printf(presetPath.toLatin1().data());
+ printf(presetPath.toLatin1().constData());
printf("\n");
}
else
@@ -2131,7 +2131,7 @@ void DeicsOnze::readConfiguration(QDomNode qdn) {
unsigned char *dataInitSetPath =
new unsigned char[1+MAXSTRLENGTHINITSETPATH];
dataInitSetPath[0]=SYSEX_INITSETPATH;
- strncpy((char*)&dataInitSetPath[1], _initSetPath.toLatin1().data(),
+ strncpy((char*)&dataInitSetPath[1], _initSetPath.toLatin1().constData(),
MAXSTRLENGTHINITSETPATH);
MidiPlayEvent
evInitSetPath(0, 0, ME_SYSEX, (const unsigned char*)dataInitSetPath,
@@ -2155,7 +2155,7 @@ void DeicsOnze::readConfiguration(QDomNode qdn) {
new unsigned char[1+MAXSTRLENGTHBACKGROUNDPIXPATH];
dataBackgroundPixPath[0]=SYSEX_BACKGROUNDPIXPATH;
strncpy((char*)&dataBackgroundPixPath[1],
- _backgroundPixPath.toLatin1().data(),
+ _backgroundPixPath.toLatin1().constData(),
MAXSTRLENGTHBACKGROUNDPIXPATH);
MidiPlayEvent
evBackgroundPixPath(0, 0, ME_SYSEX,
@@ -2218,10 +2218,10 @@ void DeicsOnze::loadConfiguration(QString fileName) {
readConfiguration(node.firstChild());
}
else printf("unsupported *.dco file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -2335,10 +2335,10 @@ void DeicsOnze::getInitData(int* length, const unsigned char** data) {
buffer[NUM_BLUE_EDITBACKGROUND]=(unsigned char)_gui->ebColor->blue();
buffer[NUM_ISINITSET]=(unsigned char)_isInitSet;
strncpy((char*)&buffer[NUM_INITSETPATH],
- _initSetPath.toLatin1().data(), MAXSTRLENGTHINITSETPATH);
+ _initSetPath.toLatin1().constData(), MAXSTRLENGTHINITSETPATH);
buffer[NUM_ISBACKGROUNDPIX]=(unsigned char)_isBackgroundPix;
strncpy((char*)&buffer[NUM_BACKGROUNDPIXPATH],
- _backgroundPixPath.toLatin1().data(),
+ _backgroundPixPath.toLatin1().constData(),
MAXSTRLENGTHBACKGROUNDPIXPATH);
}
//FX
@@ -2350,11 +2350,11 @@ void DeicsOnze::getInitData(int* length, const unsigned char** data) {
(_pluginIReverb?(unsigned char)_pluginIReverb->plugin()->controlInPorts() : 0);
strncpy((char*)&buffer[NUM_REVERB_LIB],
(_pluginIReverb?
- _pluginIReverb->plugin()->lib().toLatin1().data() : "\0"),
+ _pluginIReverb->plugin()->lib().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLIB);
strncpy((char*)&buffer[NUM_REVERB_LABEL],
(_pluginIReverb?
- _pluginIReverb->plugin()->label().toLatin1().data() : "\0"),
+ _pluginIReverb->plugin()->label().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLABEL);
//chorus
buffer[NUM_IS_CHORUS_ON]=(unsigned char)_global.isChorusActivated;
@@ -2364,11 +2364,11 @@ void DeicsOnze::getInitData(int* length, const unsigned char** data) {
(_pluginIChorus?(unsigned char)_pluginIChorus->plugin()->controlInPorts() : 0);
strncpy((char*)&buffer[NUM_CHORUS_LIB],
(_pluginIChorus?
- _pluginIChorus->plugin()->lib().toLatin1().data() : "\0"),
+ _pluginIChorus->plugin()->lib().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLIB);
strncpy((char*)&buffer[NUM_CHORUS_LABEL],
(_pluginIChorus?
- _pluginIChorus->plugin()->label().toLatin1().data() : "\0"),
+ _pluginIChorus->plugin()->label().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLABEL);
//delay
buffer[NUM_IS_DELAY_ON]=(unsigned char)_global.isDelayActivated;
@@ -2747,7 +2747,7 @@ void DeicsOnze::parseInitData(int length, const unsigned char* data) {
//setSet();
}
else printf("Wrong set version : %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
node = node.nextSibling();
}
diff --git a/muse2/synti/deicsonze/deicsonzegui.cpp b/muse2/synti/deicsonze/deicsonzegui.cpp
index c87ade2a..4bdf0205 100644
--- a/muse2/synti/deicsonze/deicsonzegui.cpp
+++ b/muse2/synti/deicsonze/deicsonzegui.cpp
@@ -598,10 +598,10 @@ void DeicsOnzeGui::loadConfiguration(QString fileName) {
_deicsOnze->readConfiguration(node.firstChild());
}
else printf("unsupported *.dco file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -1681,7 +1681,7 @@ void DeicsOnzeGui::processEvent(const MidiPlayEvent& ev) {
setSet();
/*}
else printf("Wrong set version : %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
node = node.nextSibling();
}
@@ -1791,10 +1791,10 @@ void DeicsOnzeGui::loadSetDialog() {
updatePresetName("INITVOICE", false);
}
else printf("unsupported *.dei file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -2026,10 +2026,10 @@ void DeicsOnzeGui::loadCategoryDialog() {
setSet();
}
else printf("unsupported *.dec file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -2193,10 +2193,10 @@ void DeicsOnzeGui::loadSubcategoryDialog() {
setCategory(cat);
}
else printf("unsupported *.des file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -2364,10 +2364,10 @@ void DeicsOnzeGui::loadPresetDialog() {
setSubcategory(sub->_subcategory);
}
else printf("unsupported *.dep file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
diff --git a/muse2/synti/deicsonze2/deicsonze2.cpp b/muse2/synti/deicsonze2/deicsonze2.cpp
index 6a4bc5ff..e50eb9c5 100644
--- a/muse2/synti/deicsonze2/deicsonze2.cpp
+++ b/muse2/synti/deicsonze2/deicsonze2.cpp
@@ -1239,10 +1239,10 @@ void DeicsOnze2::loadSet(QString fileName) {
_gui->writeEvent(evSysexUpdateGuiSet);
}
else printf("unsupported *.dei file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze2: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -1277,10 +1277,10 @@ void DeicsOnze2::loadSutulaPresets()
QString presetPath("/home/a-lin/sources/svnMusEDev/lmuse/muse/synti/deicsonze2/ARCH_ALIN");
- file = fopen (presetPath.toLatin1().data(), "rt");
+ file = fopen (presetPath.toLatin1().constData(), "rt");
if (file == NULL) {
printf("can't open ");
- printf(presetPath.toLatin1().data());
+ printf(presetPath.toLatin1().constData());
printf("\n");
}
else
@@ -2116,7 +2116,7 @@ void DeicsOnze2::readConfiguration(QDomNode qdn) {
unsigned char *dataInitSetPath =
new unsigned char[1+MAXSTRLENGTHINITSETPATH];
dataInitSetPath[0]=SYSEX_INITSETPATH;
- strncpy((char*)&dataInitSetPath[1], _initSetPath.toLatin1().data(),
+ strncpy((char*)&dataInitSetPath[1], _initSetPath.toLatin1().constData(),
MAXSTRLENGTHINITSETPATH);
MidiPlayEvent
evInitSetPath(0, ME_SYSEX, (const unsigned char*)dataInitSetPath,
@@ -2140,7 +2140,7 @@ void DeicsOnze2::readConfiguration(QDomNode qdn) {
new unsigned char[1+MAXSTRLENGTHBACKGROUNDPIXPATH];
dataBackgroundPixPath[0]=SYSEX_BACKGROUNDPIXPATH;
strncpy((char*)&dataBackgroundPixPath[1],
- _backgroundPixPath.toLatin1().data(),
+ _backgroundPixPath.toLatin1().constData(),
MAXSTRLENGTHBACKGROUNDPIXPATH);
MidiPlayEvent
evBackgroundPixPath(0, ME_SYSEX,
@@ -2203,10 +2203,10 @@ void DeicsOnze2::loadConfiguration(QString fileName) {
readConfiguration(node.firstChild());
}
else printf("unsupported *.dco file version %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
else printf("DeicsOnze2: %s not supported\n",
- e.tagName().toLatin1().data());
+ e.tagName().toLatin1().constData());
node = node.nextSibling();
}
}
@@ -2318,10 +2318,10 @@ void DeicsOnze2::getInitData(int* length, const unsigned char** data) {
buffer[NUM_BLUE_EDITBACKGROUND]=(unsigned char)_gui->ebColor->Qt::blue();
buffer[NUM_ISINITSET]=(unsigned char)_isInitSet;
strncpy((char*)&buffer[NUM_INITSETPATH],
- _initSetPath.toLatin1().data(), MAXSTRLENGTHINITSETPATH);
+ _initSetPath.toLatin1().constData(), MAXSTRLENGTHINITSETPATH);
buffer[NUM_ISBACKGROUNDPIX]=(unsigned char)_isBackgroundPix;
strncpy((char*)&buffer[NUM_BACKGROUNDPIXPATH],
- _backgroundPixPath.toLatin1().data(),
+ _backgroundPixPath.toLatin1().constData(),
MAXSTRLENGTHBACKGROUNDPIXPATH);
}
//FX
@@ -2332,11 +2332,11 @@ void DeicsOnze2::getInitData(int* length, const unsigned char** data) {
(_pluginIReverb?(unsigned char)_pluginIReverb->plugin()->parameter() : 0);
strncpy((char*)&buffer[NUM_REVERB_LIB],
(_pluginIReverb?
- _pluginIReverb->plugin()->lib().toLatin1().data() : "\0"),
+ _pluginIReverb->plugin()->lib().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLIB);
strncpy((char*)&buffer[NUM_REVERB_LABEL],
(_pluginIReverb?
- _pluginIReverb->plugin()->label().toLatin1().data() : "\0"),
+ _pluginIReverb->plugin()->label().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLABEL);
//chorus
buffer[NUM_IS_CHORUS_ON]=(unsigned char)_global.isChorusActivated;
@@ -2345,11 +2345,11 @@ void DeicsOnze2::getInitData(int* length, const unsigned char** data) {
(_pluginIChorus?(unsigned char)_pluginIChorus->plugin()->parameter() : 0);
strncpy((char*)&buffer[NUM_CHORUS_LIB],
(_pluginIChorus?
- _pluginIChorus->plugin()->lib().toLatin1().data() : "\0"),
+ _pluginIChorus->plugin()->lib().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLIB);
strncpy((char*)&buffer[NUM_CHORUS_LABEL],
(_pluginIChorus?
- _pluginIChorus->plugin()->label().toLatin1().data() : "\0"),
+ _pluginIChorus->plugin()->label().toLatin1().constData() : "\0"),
MAXSTRLENGTHFXLABEL);
//delay
buffer[NUM_IS_DELAY_ON]=(unsigned char)_global.isDelayActivated;
@@ -2726,7 +2726,7 @@ void DeicsOnze2::parseInitData(int length, const unsigned char* data) {
//setSet();
}
else printf("Wrong set version : %s\n",
- version.toLatin1().data());
+ version.toLatin1().constData());
}
node = node.nextSibling();
}
diff --git a/muse2/synti/fluid/fluidgui.cpp b/muse2/synti/fluid/fluidgui.cpp
index 46a735cd..4782e741 100644
--- a/muse2/synti/fluid/fluidgui.cpp
+++ b/muse2/synti/fluid/fluidgui.cpp
@@ -55,7 +55,7 @@ void FLUIDGui::loadFont()
QMessageBox::critical(this, tr("FLUID: open Soundfile"), s);
return;
}
- const char* path = pathEntry->text().latin1();
+ const char* path = pathEntry->text().toLatin1();
int len = strlen(path) + 1 + 3;
unsigned char buffer[len];
int k = 0;
diff --git a/muse2/synti/fluidsynth/fluidsynthgui.cpp b/muse2/synti/fluidsynth/fluidsynthgui.cpp
index d591ecb9..39344c02 100644
--- a/muse2/synti/fluidsynth/fluidsynthgui.cpp
+++ b/muse2/synti/fluidsynth/fluidsynthgui.cpp
@@ -142,7 +142,7 @@ void FluidSynthGui::pushClicked()
const QString& fns = Filename->text();
if (fns.isEmpty())
return;
- const char * fn = fns.latin1();
+ const char * fn = fns.toLatin1();
int datalen = strlen(fn) + 3;
unsigned char data [datalen];
@@ -183,7 +183,7 @@ void FluidSynthGui::sendLastdir(QString dir)
int l = strlen(dir)+2;
byte data[l];
data[0] = FS_LASTDIR_CHANGE;
- memcpy(data+1, dir.latin1(), strlen(dir)+1);
+ memcpy(data+1, dir.toLatin1(), strlen(dir)+1);
sendSysex(data,l);
}
@@ -198,7 +198,7 @@ void FluidSynthGui::sendLoadFont(QString filename)
byte data[l];
data[0] = FS_PUSH_FONT;
data[1] = FS_UNSPECIFIED_ID;
- memcpy(data+2, filename.latin1(), filename.length()+1);
+ memcpy(data+2, filename.toLatin1(), filename.length()+1);
sendSysex(data,l);
}
@@ -484,7 +484,7 @@ void FluidSynthGui::channelItemClicked(QTableWidgetItem* item)
int i = 0;
for (std::list<FluidGuiSoundFont>::reverse_iterator it = stack.rbegin(); it != stack.rend(); it++) {
i++;
- /*byte* d = (byte*) it->name.latin1();
+ /*byte* d = (byte*) it->name.toLatin1();
for (int i=0; i<96; i++) {
if (i%16 == 0)
printf("%x:",(i+d));
@@ -523,7 +523,7 @@ void FluidSynthGui::channelItemClicked(QTableWidgetItem* item)
sfid = getSoundFontId(act->text());
fontname = getSoundFontName(sfid);
}
- //byte channel = atoi(item->text().latin1()) - 1;
+ //byte channel = atoi(item->text().toLatin1()) - 1;
byte channel = row;
sendChannelChange(sfid, channel);
item->setText(fontname);
@@ -541,7 +541,7 @@ void FluidSynthGui::channelItemClicked(QTableWidgetItem* item)
yes->setData(1);
QAction * no = popup->addAction("No");
no->setData(0);
- //byte channel = atoi(item->text().latin1()) - 1;
+ //byte channel = atoi(item->text().toLatin1()) - 1;
byte channel = row;
QAction * act2 = popup->exec(ppt, 0);
@@ -816,9 +816,9 @@ int main(int argc, char* argv[])
museGlobalShare = getenv("MUSE");
if (museGlobalShare == 0) {
museGlobalShare = "/usr/muse";
- if (access(museGlobalShare.latin1(), R_OK) != 0) {
+ if (access(museGlobalShare.toLatin1(), R_OK) != 0) {
museGlobalShare = "/usr/local/muse";
- if (access(museGlobalShare.latin1(), R_OK) != 0)
+ if (access(museGlobalShare.toLatin1(), R_OK) != 0)
museGlobalShare = museUser;
}
}*/
diff --git a/muse2/synti/fluidsynth/fluidsynti.cpp b/muse2/synti/fluidsynth/fluidsynti.cpp
index d130e741..c9d5ef4d 100644
--- a/muse2/synti/fluidsynth/fluidsynti.cpp
+++ b/muse2/synti/fluidsynth/fluidsynti.cpp
@@ -591,7 +591,7 @@ static void* fontLoadThread(void* t)
QString temp = QString(filename);
QString name = temp.right(temp.length() - temp.findRev('/',-1) - 1);
name = name.left(name.length()-4); //Strip off ".sf2"
- font.name = name.latin1();
+ font.name = name.toLatin1().constData();
fptr->stack.push_front(font);
fptr->currentlyLoadedFonts++;
diff --git a/muse2/synti/simpledrums/simpledrums.cpp b/muse2/synti/simpledrums/simpledrums.cpp
index 7c3a4605..c30bba76 100644
--- a/muse2/synti/simpledrums/simpledrums.cpp
+++ b/muse2/synti/simpledrums/simpledrums.cpp
@@ -139,36 +139,36 @@ SimpleSynth::SimpleSynth(int sr)
QString c6 = "Channel " + QString::number(ch + 1) + " fx send 2";
QString c7 = "Channel " + QString::number(ch + 1) + " fx send 3";
QString c8 = "Channel " + QString::number(ch + 1) + " fx send 4";
- controllers[i].name = c1.latin1();
+ controllers[i].name = c1.toLatin1();
controllers[i].num = CTRL_NRPN14_OFFSET+i;
controllers[i].min = 0;
controllers[i].max = 127;
- controllers[i+1].name = c2.latin1();
+ controllers[i+1].name = c2.toLatin1();
controllers[i+1].num = CTRL_NRPN14_OFFSET+i+1;
controllers[i+1].min = 0;
controllers[i+1].max = 127;
- controllers[i+2].name = c3.latin1();
+ controllers[i+2].name = c3.toLatin1();
controllers[i+2].num = CTRL_NRPN14_OFFSET+i+2;
controllers[i+2].min = 0;
controllers[i+2].max = 1;
- controllers[i+3].name = c4.latin1();
+ controllers[i+3].name = c4.toLatin1();
controllers[i+3].num = CTRL_NRPN14_OFFSET+i+3;
controllers[i+3].min = 0;
controllers[i+3].max = 1;
- controllers[i+4].name = c5.latin1();
+ controllers[i+4].name = c5.toLatin1();
controllers[i+4].num = CTRL_NRPN14_OFFSET+i+4;
- controllers[i+5].name = c6.latin1();
+ controllers[i+5].name = c6.toLatin1();
controllers[i+5].num = CTRL_NRPN14_OFFSET+i+5;
- controllers[i+6].name = c7.latin1();
+ controllers[i+6].name = c7.toLatin1();
controllers[i+6].num = CTRL_NRPN14_OFFSET+i+6;
- controllers[i+7].name = c8.latin1();
+ controllers[i+7].name = c8.toLatin1();
controllers[i+7].num = CTRL_NRPN14_OFFSET+i+7;
controllers[i+4].min = controllers[i+5].min = controllers[i+6].min = controllers[i+7].min = 0;
@@ -180,12 +180,12 @@ SimpleSynth::SimpleSynth(int sr)
for (int sfx=0; sfx<SS_NR_OF_SENDEFFECTS; sfx++) {
QString c1 = "Sendfx " + QString::number(sfx) + " ret gain";
QString c2 = "Sendfx " + QString::number(sfx) + " on/off";
- controllers[i].name = c1.latin1();
+ controllers[i].name = c1.toLatin1();
controllers[i].num = CTRL_NRPN14_OFFSET+i;
controllers[i].min = 0;
controllers[i].max = 127;
- controllers[i+1].name = c2.latin1();
+ controllers[i+1].name = c2.toLatin1();
controllers[i+1].num = CTRL_NRPN14_OFFSET+i+1;
controllers[i+1].min = 0;
controllers[i+1].max = 1;
@@ -532,7 +532,7 @@ bool SimpleSynth::sysex(int /*len*/, const unsigned char* data)
QString lib = (const char*) (data + 2);
QString label = (const char*) (data + lib.length() + 3);
if (SS_DEBUG_MIDI) {
- printf("Sysex cmd load effect: %d %s %s\n", fxid, lib.latin1(), label.latin1());
+ printf("Sysex cmd load effect: %d %s %s\n", fxid, lib.toLatin1(), label.toLatin1());
}
initSendEffect(fxid, lib, label);
break;
@@ -1561,7 +1561,7 @@ bool SimpleSynth::initSendEffect(int id, QString lib, QString name)
sendEffects[id].outputs = plugin->outports();
if (plugin->instantiate()) {
- SS_DBG2("Plugin instantiated", name.latin1());
+ SS_DBG2("Plugin instantiated", name.toLatin1());
SS_DBG_I("Parameters", plugin->parameter());
SS_DBG_I("No of inputs", plugin->inports());
SS_DBG_I("No of outputs",plugin->outports());
@@ -1646,7 +1646,7 @@ void SimpleSynth::cleanupPlugin(int id)
SS_TRACE_IN
LadspaPlugin* plugin = sendEffects[id].plugin;
plugin->stop();
- SS_DBG2("Stopped fx", plugin->label().latin1());
+ SS_DBG2("Stopped fx", plugin->label().toLatin1());
sendEffects[id].nrofparameters = 0;
sendEffects[id].state = SS_SENDFX_OFF;
sendEffects[id].plugin = 0;
diff --git a/muse2/synti/simpledrums/simpledrumsgui.cpp b/muse2/synti/simpledrums/simpledrumsgui.cpp
index 3ba474af..f874a136 100644
--- a/muse2/synti/simpledrums/simpledrumsgui.cpp
+++ b/muse2/synti/simpledrums/simpledrumsgui.cpp
@@ -512,7 +512,7 @@ void SimpleSynthGui::processEvent(const MidiPlayEvent& ev)
QString filename = (const char*) (data+2);
sampleNameLineEdit[ch]->setText(filename.section('/',-1,-1));
if (SS_DEBUG_MIDI) {
- printf("SimpleSynthGui - sample %s loaded OK on channel: %d\n", filename.latin1(), ch);
+ printf("SimpleSynthGui - sample %s loaded OK on channel: %d\n", filename.toLatin1(), ch);
}
if (!onOff[ch]->isChecked()) {
onOff[ch]->blockSignals(true);
@@ -708,7 +708,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel)
lastDir = filename.left(filename.findRev("/"));
if (SS_DEBUG)
- printf("lastDir = %s\n", lastDir.latin1());
+ printf("lastDir = %s\n", lastDir.toLatin1());
int l = filename.length() + 4;
byte d[l];
@@ -716,7 +716,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel)
d[0] = SS_SYSEX_LOAD_SAMPLE;
d[1] = (byte) channel;
d[2] = (byte) filename.length();
- memcpy(d+3, filename.latin1(), filename.length()+1);
+ memcpy(d+3, filename.toLatin1(), filename.length()+1);
sendSysex(d, l);
}
}
@@ -753,8 +753,8 @@ void SimpleSynthGui::loadEffectInvoked(int fxid, QString lib, QString label)
byte d[l];
d[0] = SS_SYSEX_LOAD_SENDEFFECT;
d[1] = (byte) fxid;
- memcpy (d+2, lib.latin1(), lib.length()+1);
- memcpy (d+3+lib.length(), label.latin1(), label.length()+1);
+ memcpy (d+2, lib.toLatin1(), lib.length()+1);
+ memcpy (d+3+lib.length(), label.toLatin1(), label.length()+1);
sendSysex(d, l);
}
diff --git a/muse2/synti/simpledrums/ssplugin.cpp b/muse2/synti/simpledrums/ssplugin.cpp
index 0efbc55e..4e38129e 100644
--- a/muse2/synti/simpledrums/ssplugin.cpp
+++ b/muse2/synti/simpledrums/ssplugin.cpp
@@ -34,7 +34,7 @@ static void loadPluginLib(QFileInfo* fi)
{
SS_TRACE_IN
if (SS_DEBUG_LADSPA) {
- printf("loadPluginLib: %s\n", fi->fileName().latin1());
+ printf("loadPluginLib: %s\n", fi->fileName().toLatin1());
}
void* handle = dlopen(fi->filePath().ascii(), RTLD_NOW);
if (handle == 0) {
@@ -159,7 +159,7 @@ LadspaPlugin::LadspaPlugin(const QFileInfo* f,
}
/*if (SS_DEBUG_LADSPA) {
- printf("Label: %s\tLib: %s\tPortCount: %d\n", this->label().latin1(), this->lib().latin1(), plugin->PortCount);
+ printf("Label: %s\tLib: %s\tPortCount: %d\n", this->label().toLatin1(), this->lib().toLatin1(), plugin->PortCount);
printf("LADSPA_PORT_CONTROL|LADSPA_PORT_INPUT: %d\t", pIdx.size());
printf("Input ports: %d\t", iIdx.size());
printf("Output ports: %d\n\n", oIdx.size());
@@ -182,7 +182,7 @@ LadspaPlugin::~LadspaPlugin()
stop();
}
if (handle) {
- SS_DBG_LADSPA2("Cleaning up ", this->label().latin1());
+ SS_DBG_LADSPA2("Cleaning up ", this->label().toLatin1());
plugin->cleanup(handle);
}
@@ -206,7 +206,7 @@ bool LadspaPlugin::instantiate()
handle = plugin->instantiate(plugin, SS_samplerate);
success = (handle != NULL);
if (success)
- SS_DBG_LADSPA2("Plugin instantiated", label().latin1());
+ SS_DBG_LADSPA2("Plugin instantiated", label().toLatin1());
return success;
}
@@ -255,9 +255,9 @@ void LadspaPlugin::stop()
{
SS_TRACE_IN
if (handle) {
- SS_DBG_LADSPA2("Trying to stop plugin", label().latin1());
+ SS_DBG_LADSPA2("Trying to stop plugin", label().toLatin1());
if (plugin->deactivate) {
- SS_DBG_LADSPA2("Deactivating ", label().latin1());
+ SS_DBG_LADSPA2("Deactivating ", label().toLatin1());
plugin->deactivate(handle);
active = false;
}
@@ -355,7 +355,7 @@ Plugin* PluginList::find(const QString& file, const QString& name)
return *i;
}
}
- printf("Plugin <%s> not found\n", name.latin1());
+ printf("Plugin <%s> not found\n", name.toLatin1());
SS_TRACE_OUT
return 0;
}
diff --git a/muse2/synti/simpledrums/ssplugingui.cpp b/muse2/synti/simpledrums/ssplugingui.cpp
index bd4e88d8..e1e8a7de 100644
--- a/muse2/synti/simpledrums/ssplugingui.cpp
+++ b/muse2/synti/simpledrums/ssplugingui.cpp
@@ -271,7 +271,7 @@ void SS_PluginFront::loadButton()
pluginChooser->exec();
if ((pluginChooser->result() == QDialog::Accepted) && pluginChooser->getSelectedPlugin()) {
Plugin* p = pluginChooser->getSelectedPlugin();
- //printf("Selected plugin: %s\n", pluginChooser->getSelectedPlugin()->name().latin1());
+ //printf("Selected plugin: %s\n", pluginChooser->getSelectedPlugin()->name().toLatin1());
emit loadPlugin(fxid, p->lib(), p->label());
}
SS_TRACE_OUT
diff --git a/muse2/synti/simpledrums2/simpledrums.cpp b/muse2/synti/simpledrums2/simpledrums.cpp
index 6ae7797f..13f1d3e2 100644
--- a/muse2/synti/simpledrums2/simpledrums.cpp
+++ b/muse2/synti/simpledrums2/simpledrums.cpp
@@ -139,36 +139,36 @@ SimpleSynth::SimpleSynth(int sr)
QString c6 = "Channel " + QString::number(ch + 1) + " fx send 2";
QString c7 = "Channel " + QString::number(ch + 1) + " fx send 3";
QString c8 = "Channel " + QString::number(ch + 1) + " fx send 4";
- controllers[i].name = c1.toLatin1().data();
+ controllers[i].name = c1.toLatin1().constData();
controllers[i].num = CTRL_NRPN14_OFFSET+i;
controllers[i].min = 0;
controllers[i].max = 127;
- controllers[i+1].name = c2.toLatin1().data();
+ controllers[i+1].name = c2.toLatin1().constData();
controllers[i+1].num = CTRL_NRPN14_OFFSET+i+1;
controllers[i+1].min = 0;
controllers[i+1].max = 127;
- controllers[i+2].name = c3.toLatin1().data();
+ controllers[i+2].name = c3.toLatin1().constData();
controllers[i+2].num = CTRL_NRPN14_OFFSET+i+2;
controllers[i+2].min = 0;
controllers[i+2].max = 1;
- controllers[i+3].name = c4.toLatin1().data();
+ controllers[i+3].name = c4.toLatin1().constData();
controllers[i+3].num = CTRL_NRPN14_OFFSET+i+3;
controllers[i+3].min = 0;
controllers[i+3].max = 1;
- controllers[i+4].name = c5.toLatin1().data();
+ controllers[i+4].name = c5.toLatin1().constData();
controllers[i+4].num = CTRL_NRPN14_OFFSET+i+4;
- controllers[i+5].name = c6.toLatin1().data();
+ controllers[i+5].name = c6.toLatin1().constData();
controllers[i+5].num = CTRL_NRPN14_OFFSET+i+5;
- controllers[i+6].name = c7.toLatin1().data();
+ controllers[i+6].name = c7.toLatin1().constData();
controllers[i+6].num = CTRL_NRPN14_OFFSET+i+6;
- controllers[i+7].name = c8.toLatin1().data();
+ controllers[i+7].name = c8.toLatin1().constData();
controllers[i+7].num = CTRL_NRPN14_OFFSET+i+7;
controllers[i+4].min = controllers[i+5].min = controllers[i+6].min = controllers[i+7].min = 0;
@@ -180,12 +180,12 @@ SimpleSynth::SimpleSynth(int sr)
for (int sfx=0; sfx<SS_NR_OF_SENDEFFECTS; sfx++) {
QString c1 = "Sendfx " + QString::number(sfx) + " ret gain";
QString c2 = "Sendfx " + QString::number(sfx) + " on/off";
- controllers[i].name = c1.toLatin1().data();
+ controllers[i].name = c1.toLatin1().constData();
controllers[i].num = CTRL_NRPN14_OFFSET+i;
controllers[i].min = 0;
controllers[i].max = 127;
- controllers[i+1].name = c2.toLatin1().data();
+ controllers[i+1].name = c2.toLatin1().constData();
controllers[i+1].num = CTRL_NRPN14_OFFSET+i+1;
controllers[i+1].min = 0;
controllers[i+1].max = 1;
@@ -532,7 +532,7 @@ bool SimpleSynth::sysex(int /*len*/, const unsigned char* data)
QString lib = (const char*) (data + 2);
QString label = (const char*) (data + lib.length() + 3);
if (SS_DEBUG_MIDI) {
- printf("Sysex cmd load effect: %d %s %s\n", fxid, lib.toLatin1().data(), label.toLatin1().data());
+ printf("Sysex cmd load effect: %d %s %s\n", fxid, lib.toLatin1().constData(), label.toLatin1().constData());
}
initSendEffect(fxid, lib, label);
break;
@@ -964,7 +964,7 @@ void SimpleSynth::getInitData(int* n, const unsigned char** data)
if (sendEffects[j].plugin) {
int labelnamelen = sendEffects[j].plugin->label().size() + 1;
buffer[i] = labelnamelen;
- memcpy((buffer+i+1), sendEffects[j].plugin->label().toLatin1().data(), labelnamelen);
+ memcpy((buffer+i+1), sendEffects[j].plugin->label().toLatin1().constData(), labelnamelen);
if (SS_DEBUG_INIT) {
printf("buffer[%d] - labelnamelen: %d\n", i, labelnamelen);
printf("buffer[%d] - buffer[%d] - filename: ", (i+1), (i+1) + labelnamelen - 1);
@@ -978,7 +978,7 @@ void SimpleSynth::getInitData(int* n, const unsigned char** data)
int namelen = sendEffects[j].plugin->lib().size() + 1;
buffer[i] = namelen;
- memcpy((buffer+i+1), sendEffects[j].plugin->lib().toLatin1().data(), namelen);
+ memcpy((buffer+i+1), sendEffects[j].plugin->lib().toLatin1().constData(), namelen);
if (SS_DEBUG_INIT) {
printf("buffer[%d] - libnamelen : %d\n", i, namelen);
printf("buffer[%d] - buffer[%d] - filename: ", (i+1), (i+1) + namelen - 1);
@@ -1524,7 +1524,7 @@ bool SimpleSynth::initSendEffect(int id, QString lib, QString name)
sendEffects[id].outputs = plugin->outports();
if (plugin->instantiate()) {
- SS_DBG2("Plugin instantiated", name.toLatin1().data());
+ SS_DBG2("Plugin instantiated", name.toLatin1().constData());
SS_DBG_I("Parameters", plugin->parameter());
SS_DBG_I("No of inputs", plugin->inports());
SS_DBG_I("No of outputs",plugin->outports());
@@ -1583,7 +1583,7 @@ bool SimpleSynth::initSendEffect(int id, QString lib, QString name)
if (!success) {
QString errorString = "Error loading plugin \"" + plugin->label() + "\"";
- guiSendError(errorString.toLatin1().data());
+ guiSendError(errorString.toLatin1().constData());
}
return success;
SS_TRACE_OUT
@@ -1609,7 +1609,7 @@ void SimpleSynth::cleanupPlugin(int id)
SS_TRACE_IN
LadspaPlugin* plugin = sendEffects[id].plugin;
plugin->stop();
- SS_DBG2("Stopped fx", plugin->label().toLatin1().data());
+ SS_DBG2("Stopped fx", plugin->label().toLatin1().constData());
sendEffects[id].nrofparameters = 0;
sendEffects[id].state = SS_SENDFX_OFF;
sendEffects[id].plugin = 0;
diff --git a/muse2/synti/simpledrums2/simpledrumsgui.cpp b/muse2/synti/simpledrums2/simpledrumsgui.cpp
index 79194eed..f90c1da8 100644
--- a/muse2/synti/simpledrums2/simpledrumsgui.cpp
+++ b/muse2/synti/simpledrums2/simpledrumsgui.cpp
@@ -509,7 +509,7 @@ void SimpleSynthGui::processEvent(const MidiPlayEvent& ev)
QString filename = (const char*) (data+2);
sampleNameLineEdit[ch]->setText(filename.section('/',-1,-1));
if (SS_DEBUG_MIDI) {
- printf("SimpleSynthGui - sample %s loaded OK on channel: %d\n", filename.toLatin1().data(), ch);
+ printf("SimpleSynthGui - sample %s loaded OK on channel: %d\n", filename.toLatin1().constData(), ch);
}
if (!onOff[ch]->isChecked()) {
onOff[ch]->blockSignals(true);
@@ -709,7 +709,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel)
lastDir = fi.path();
if (SS_DEBUG)
- printf("lastDir = %s\n", lastDir.toLatin1().data());
+ printf("lastDir = %s\n", lastDir.toLatin1().constData());
int l = filename.length() + 4;
byte d[l];
@@ -717,7 +717,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel)
d[0] = SS_SYSEX_LOAD_SAMPLE;
d[1] = (byte) channel;
d[2] = (byte) filename.length();
- memcpy(d+3, filename.toLatin1().data(), filename.length()+1);
+ memcpy(d+3, filename.toLatin1().constData(), filename.length()+1);
sendSysex(d, l);
}
}
@@ -755,8 +755,8 @@ void SimpleSynthGui::loadEffectInvoked(int fxid, QString lib, QString label)
byte d[l];
d[0] = SS_SYSEX_LOAD_SENDEFFECT;
d[1] = (byte) fxid;
- memcpy (d+2, lib.toLatin1().data(), lib.length()+1);
- memcpy (d+3+lib.length(), label.toLatin1().data(), label.length()+1);
+ memcpy (d+2, lib.toLatin1().constData(), lib.length()+1);
+ memcpy (d+3+lib.length(), label.toLatin1().constData(), label.length()+1);
sendSysex(d, l);
}
diff --git a/muse2/synti/simpledrums2/ssplugin.cpp b/muse2/synti/simpledrums2/ssplugin.cpp
index 7e8986e7..28639a39 100644
--- a/muse2/synti/simpledrums2/ssplugin.cpp
+++ b/muse2/synti/simpledrums2/ssplugin.cpp
@@ -34,7 +34,7 @@ static void loadPluginLib(QFileInfo* fi)
{
SS_TRACE_IN
if (SS_DEBUG_LADSPA) {
- printf("loadPluginLib: %s\n", fi->fileName().toLatin1().data());
+ printf("loadPluginLib: %s\n", fi->fileName().toLatin1().constData());
}
void* handle = dlopen(fi->filePath().toAscii().data(), RTLD_NOW);
if (handle == 0) {
@@ -158,7 +158,7 @@ LadspaPlugin::LadspaPlugin(const QFileInfo* f,
}
/*if (SS_DEBUG_LADSPA) {
- printf("Label: %s\tLib: %s\tPortCount: %d\n", this->label().toLatin1().data(), this->lib().toLatin1().data(), plugin->PortCount);
+ printf("Label: %s\tLib: %s\tPortCount: %d\n", this->label().toLatin1().constData(), this->lib().toLatin1().constData(), plugin->PortCount);
printf("LADSPA_PORT_CONTROL|LADSPA_PORT_INPUT: %d\t", pIdx.size());
printf("Input ports: %d\t", iIdx.size());
printf("Output ports: %d\n\n", oIdx.size());
@@ -181,7 +181,7 @@ LadspaPlugin::~LadspaPlugin()
stop();
}
if (handle) {
- SS_DBG_LADSPA2("Cleaning up ", this->label().toLatin1().data());
+ SS_DBG_LADSPA2("Cleaning up ", this->label().toLatin1().constData());
plugin->cleanup(handle);
}
@@ -205,7 +205,7 @@ bool LadspaPlugin::instantiate()
handle = plugin->instantiate(plugin, SS_samplerate);
success = (handle != NULL);
if (success)
- SS_DBG_LADSPA2("Plugin instantiated", label().toLatin1().data());
+ SS_DBG_LADSPA2("Plugin instantiated", label().toLatin1().constData());
return success;
}
@@ -254,9 +254,9 @@ void LadspaPlugin::stop()
{
SS_TRACE_IN
if (handle) {
- SS_DBG_LADSPA2("Trying to stop plugin", label().toLatin1().data());
+ SS_DBG_LADSPA2("Trying to stop plugin", label().toLatin1().constData());
if (plugin->deactivate) {
- SS_DBG_LADSPA2("Deactivating ", label().toLatin1().data());
+ SS_DBG_LADSPA2("Deactivating ", label().toLatin1().constData());
plugin->deactivate(handle);
active = false;
}
@@ -354,7 +354,7 @@ Plugin* PluginList::find(const QString& file, const QString& name)
return *i;
}
}
- printf("Plugin <%s> not found\n", name.toLatin1().data());
+ printf("Plugin <%s> not found\n", name.toLatin1().constData());
SS_TRACE_OUT
return 0;
}
diff --git a/muse2/synti/simpledrums2/ssplugingui.cpp b/muse2/synti/simpledrums2/ssplugingui.cpp
index da74bd56..ff17255e 100644
--- a/muse2/synti/simpledrums2/ssplugingui.cpp
+++ b/muse2/synti/simpledrums2/ssplugingui.cpp
@@ -266,7 +266,7 @@ void SS_PluginFront::loadButton()
pluginChooser->exec();
if ((pluginChooser->result() == QDialog::Accepted) && pluginChooser->getSelectedPlugin()) {
Plugin* p = pluginChooser->getSelectedPlugin();
- //printf("Selected plugin: %s\n", pluginChooser->getSelectedPlugin()->name().toLatin1().data());
+ //printf("Selected plugin: %s\n", pluginChooser->getSelectedPlugin()->name().toLatin1().constData());
emit loadPlugin(fxid, p->lib(), p->label());
}
SS_TRACE_OUT
diff --git a/muse2/synti/vam/vamgui.cpp b/muse2/synti/vam/vamgui.cpp
index e438b0e0..1ed32994 100644
--- a/muse2/synti/vam/vamgui.cpp
+++ b/muse2/synti/vam/vamgui.cpp
@@ -445,7 +445,7 @@ void VAMGui::setPreset(Preset* preset)
putchar(0x7c); // mess
putchar(0x2); // vam
putchar(0x3); // setPreset
- const char* name = preset->name.latin1();
+ const char* name = preset->name.toLatin1();
while (*name)
putchar(*name++ & 0x7f);
putchar(0);
@@ -603,7 +603,7 @@ void VAMGui::loadPresetsPressed()
break;
case Xml::Attribut:
if(mode == 1 && tag == "iname") {
-// fprintf(stderr, "%s\n", xml.s2().latin1());
+// fprintf(stderr, "%s\n", xml.s2().toLatin1());
if(xml.s2() != "vam-1.0")
return;
else mode = 2;