summaryrefslogtreecommitdiff
path: root/muse2/synti/simpledrums
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti/simpledrums')
-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
4 files changed, 26 insertions, 26 deletions
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