My environment:
Windows 10 64bit
ENTTEC USB OPEN
VirtualDJ 2020
QLC+ 4.12.2
American DJ stinger spot * 1
I moved a fader on the virtual console of QLC+, but the fader on the virtual console of QLC+ can move only from 0 to 100.
https://youtu.be/qnd8pjJ21VE
I investigated QLC+ 4.12.2 source code.
os2lplugin.cpp:
void OS2LPlugin::slotProcessTCPPackets()
{
...
else if (event == "cmd")
{
QJsonValue jId = jsonObj.value("id");
QJsonValue jParam = jsonObj.value("param");
qDebug() << "Got CMD message" << jId.toInt() << "with param" << jParam.toDouble();
quint32 channel = quint32(jId.toInt());
QString cmd = QString("cmd%1").arg(channel);
emit valueChanged(m_inputUniverse, 0, quint32(jId.toInt()), uchar(jParam.toDouble()), cmd);
}
..
}
If this line
emit valueChanged(m_inputUniverse, 0, quint32(jId.toInt()), uchar(jParam.toDouble()), cmd);
is replaced with
emit valueChanged(m_inputUniverse, 0, quint32(jId.toInt()), uchar(jParam.toDouble()*2.55), cmd);
will the virtual console's fader move from 0 to 255?
because "param" sent by virtualDJ via os2l protocol is the percentage of maximum DMX value 255.
os2l slider from VirtualDJ
-
- Posts: 1
- Joined: Wed Jul 29, 2020 5:11 pm
- Real Name:
I use an auxiliary variable, for control level from 0 to 255.
Try chained VDJ commands for your VDJ slider:
Try chained VDJ commands for your VDJ slider:
Code: Select all
set '$level5' & get_var '$level5' & param_multiply 2.55 & param_cast "percentage" & os2l_cmd 5