mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 16:02:39 +01:00
media-sound/mixxx: update pre-2.1.1 patches #6
This commit is contained in:
87
media-sound/mixxx/files/mixxx-2.1.0-beatsync-fix.patch
Normal file
87
media-sound/mixxx/files/mixxx-2.1.0-beatsync-fix.patch
Normal file
@@ -0,0 +1,87 @@
|
||||
From 5b656450844d09f41afbb2cccbec74ef3b72eb99 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org>
|
||||
Date: Tue, 22 May 2018 02:29:42 +0200
|
||||
Subject: [PATCH 1/2] fix beatsync control syncing phase, an old regression
|
||||
since 2.0
|
||||
|
||||
---
|
||||
src/engine/enginebuffer.cpp | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/engine/enginebuffer.cpp b/src/engine/enginebuffer.cpp
|
||||
index 1218f017b6..42087bc248 100644
|
||||
--- a/src/engine/enginebuffer.cpp
|
||||
+++ b/src/engine/enginebuffer.cpp
|
||||
@@ -658,7 +658,7 @@ void EngineBuffer::slotControlPlayRequest(double v) {
|
||||
bool verifiedPlay = updateIndicatorsAndModifyPlay(v > 0.0);
|
||||
|
||||
if (!oldPlay && verifiedPlay) {
|
||||
- if (m_pQuantize->get() > 0.0
|
||||
+ if (m_pQuantize->toBool()
|
||||
#ifdef __VINYLCONTROL__
|
||||
&& m_pVinylControlControl && !m_pVinylControlControl->isEnabled()
|
||||
#endif
|
||||
@@ -900,7 +900,7 @@ void EngineBuffer::process(CSAMPLE* pOutput, const int iBufferSize) {
|
||||
// we need to sync phase or we'll be totally out of whack and the sync
|
||||
// adjuster will kick in and push the track back in to sync with the
|
||||
// master.
|
||||
- if (m_scratching_old && !is_scratching && m_pQuantize->get() > 0.0
|
||||
+ if (m_scratching_old && !is_scratching && m_pQuantize->toBool()
|
||||
&& m_pSyncControl->getSyncMode() == SYNC_FOLLOWER && !paused) {
|
||||
// TODO() The resulting seek is processed in the following callback
|
||||
// That is to late
|
||||
@@ -1179,7 +1179,7 @@ void EngineBuffer::processSeek(bool paused) {
|
||||
return;
|
||||
}
|
||||
|
||||
- if ((seekType & SEEK_PHASE) && !paused && m_pQuantize->toBool()) {
|
||||
+ if (!paused && ((seekType & SEEK_PHASE) || m_pQuantize->toBool())) {
|
||||
position = m_pBpmControl->getNearestPositionInPhase(position, true, true);
|
||||
}
|
||||
if (position != m_filepos_play) {
|
||||
|
||||
From f762d52d65c63bcfac7604011b231019d605dd97 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org>
|
||||
Date: Tue, 22 May 2018 02:37:31 +0200
|
||||
Subject: [PATCH 2/2] Added beatsync to right click on sync in Shade and Deere,
|
||||
fixes bug #1772526
|
||||
|
||||
---
|
||||
res/skins/Deere/deck_tempo_column.xml | 3 ++-
|
||||
res/skins/Shade/deck.xml | 2 +-
|
||||
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/res/skins/Deere/deck_tempo_column.xml b/res/skins/Deere/deck_tempo_column.xml
|
||||
index 7d7e76ea19..d7de70df24 100644
|
||||
--- a/res/skins/Deere/deck_tempo_column.xml
|
||||
+++ b/res/skins/Deere/deck_tempo_column.xml
|
||||
@@ -15,7 +15,7 @@
|
||||
<ObjectName>TempoControlButtons</ObjectName>
|
||||
<Layout>vertical</Layout>
|
||||
<Children>
|
||||
- <Template src="skin:left_2state_button.xml">
|
||||
+ <Template src="skin:left_right_2state_button.xml">
|
||||
<SetVariable name="TooltipId">sync_enabled</SetVariable>
|
||||
<SetVariable name="ObjectName">DeckSync</SetVariable>
|
||||
<SetVariable name="MinimumSize">-1,18</SetVariable>
|
||||
@@ -28,6 +28,7 @@
|
||||
<SetVariable name="state_1_pressed"></SetVariable>
|
||||
<SetVariable name="state_1_unpressed"></SetVariable>
|
||||
<SetVariable name="left_connection_control"><Variable name="group"/>,sync_enabled</SetVariable>
|
||||
+ <SetVariable name="right_connection_control"><Variable name="group"/>,beatsync</SetVariable>
|
||||
</Template>
|
||||
|
||||
<WidgetGroup>
|
||||
diff --git a/res/skins/Shade/deck.xml b/res/skins/Shade/deck.xml
|
||||
index ad3cabd6d2..494901128a 100644
|
||||
--- a/res/skins/Shade/deck.xml
|
||||
+++ b/res/skins/Shade/deck.xml
|
||||
@@ -450,7 +450,7 @@
|
||||
<ButtonState>LeftButton</ButtonState>
|
||||
</Connection>
|
||||
<Connection>
|
||||
- <ConfigKey>[Channel<Variable name="channum"/>],beatsync_tempo</ConfigKey>
|
||||
+ <ConfigKey>[Channel<Variable name="channum"/>],beatsync</ConfigKey>
|
||||
<ButtonState>RightButton</ButtonState>
|
||||
</Connection>
|
||||
</PushButton>
|
||||
@@ -0,0 +1,73 @@
|
||||
From c7c5218a8ce51a9bc3384903b056ec485d46e0c7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org>
|
||||
Date: Sat, 26 May 2018 23:11:09 +0200
|
||||
Subject: [PATCH 1/2] manually call doSortByColumn in Qt5, because the required
|
||||
signal is not emmitted in Qt4
|
||||
|
||||
---
|
||||
src/widget/wtracktableview.cpp | 15 ++++++++++++---
|
||||
1 file changed, 12 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp
|
||||
index f70d20b471..8813d298eb 100644
|
||||
--- a/src/widget/wtracktableview.cpp
|
||||
+++ b/src/widget/wtracktableview.cpp
|
||||
@@ -358,10 +358,14 @@ void WTrackTableView::loadTrackModel(QAbstractItemModel *model) {
|
||||
// Stupid hack that assumes column 0 is never visible, but this is a weak
|
||||
// proxy for "there was a saved column sort order"
|
||||
if (horizontalHeader()->sortIndicatorSection() > 0) {
|
||||
- // Sort by the saved sort section and order. This line sorts the
|
||||
- // TrackModel and in turn generates a select()
|
||||
+ // Sort by the saved sort section and order.
|
||||
horizontalHeader()->setSortIndicator(horizontalHeader()->sortIndicatorSection(),
|
||||
horizontalHeader()->sortIndicatorOrder());
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
+ // in Qt4, the line above emits sortIndicatorChanged
|
||||
+ // in Qt5, we need to call it manually, which triggers finally the select()
|
||||
+ doSortByColumn(horizontalHeader()->sortIndicatorSection());
|
||||
+#endif
|
||||
} else {
|
||||
// No saved order is present. Use the TrackModel's default sort order.
|
||||
int sortColumn = trackModel->defaultSortColumn();
|
||||
@@ -372,8 +376,13 @@ void WTrackTableView::loadTrackModel(QAbstractItemModel *model) {
|
||||
while (sortColumn < 0 || trackModel->isColumnInternal(sortColumn)) {
|
||||
sortColumn++;
|
||||
}
|
||||
- // This line sorts the TrackModel and in turn generates a select()
|
||||
+ // This line sorts the TrackModel
|
||||
horizontalHeader()->setSortIndicator(sortColumn, sortOrder);
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
+ // in Qt4, the line above emits sortIndicatorChanged
|
||||
+ // in Qt5, we need to call it manually, which triggers finally the select()
|
||||
+ doSortByColumn(sortColumn);
|
||||
+#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
From 7ae7d33ca739f6c7f3250eb3dda182eddb39f627 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org>
|
||||
Date: Sun, 27 May 2018 01:36:25 +0200
|
||||
Subject: [PATCH 2/2] fix double activate of the mixxx library feature
|
||||
|
||||
---
|
||||
src/library/sidebarmodel.cpp | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/library/sidebarmodel.cpp b/src/library/sidebarmodel.cpp
|
||||
index 22a93e2165..518277f640 100644
|
||||
--- a/src/library/sidebarmodel.cpp
|
||||
+++ b/src/library/sidebarmodel.cpp
|
||||
@@ -252,11 +252,7 @@ void SidebarModel::slotPressedUntilClickedTimeout() {
|
||||
void SidebarModel::pressed(const QModelIndex& index) {
|
||||
stopPressedUntilClickedTimer();
|
||||
if (index.isValid()) {
|
||||
- if (index.internalPointer() == this) {
|
||||
- m_sFeatures[index.row()]->activate();
|
||||
- } else {
|
||||
- startPressedUntilClickedTimer(index);
|
||||
- }
|
||||
+ startPressedUntilClickedTimer(index);
|
||||
}
|
||||
}
|
||||
|
||||
524
media-sound/mixxx/files/mixxx-2.1.0-qt5-2.1.patch
Normal file
524
media-sound/mixxx/files/mixxx-2.1.0-qt5-2.1.patch
Normal file
@@ -0,0 +1,524 @@
|
||||
From 84f6380d0c9397af8da4f4dda443aeb36239d9dd Mon Sep 17 00:00:00 2001
|
||||
From: RJ Skerry-Ryan <rryan@mixxx.org>
|
||||
Date: Mon, 23 Apr 2018 22:08:15 -0700
|
||||
Subject: [PATCH 1/6] Fix lack of QAtomicPointer::operator T*() on Qt5.
|
||||
|
||||
---
|
||||
src/engine/loopingcontrol.cpp | 3 ++-
|
||||
src/util/compatibility.h | 10 ++++++++++
|
||||
2 files changed, 12 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/engine/loopingcontrol.cpp b/src/engine/loopingcontrol.cpp
|
||||
index 62a70de981..d8a92fc536 100644
|
||||
--- a/src/engine/loopingcontrol.cpp
|
||||
+++ b/src/engine/loopingcontrol.cpp
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "engine/loopingcontrol.h"
|
||||
#include "engine/bpmcontrol.h"
|
||||
#include "engine/enginecontrol.h"
|
||||
+#include "util/compatibility.h"
|
||||
#include "util/math.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
@@ -790,7 +791,7 @@ void LoopingControl::notifySeek(double dNewPlaypos, bool adjustingPhase) {
|
||||
void LoopingControl::setLoopingEnabled(bool enabled) {
|
||||
m_bLoopingEnabled = enabled;
|
||||
m_pCOLoopEnabled->set(enabled);
|
||||
- BeatLoopingControl* pActiveBeatLoop = m_pActiveBeatLoop;
|
||||
+ BeatLoopingControl* pActiveBeatLoop = load_atomic_pointer(m_pActiveBeatLoop);
|
||||
if (pActiveBeatLoop != nullptr) {
|
||||
if (enabled) {
|
||||
pActiveBeatLoop->activate();
|
||||
diff --git a/src/util/compatibility.h b/src/util/compatibility.h
|
||||
index e4c92c7abe..9cf12004c8 100644
|
||||
--- a/src/util/compatibility.h
|
||||
+++ b/src/util/compatibility.h
|
||||
@@ -2,6 +2,7 @@
|
||||
#define COMPATABILITY_H
|
||||
|
||||
#include <QAtomicInt>
|
||||
+#include <QAtomicPointer>
|
||||
#include <QStringList>
|
||||
#include <QApplication>
|
||||
|
||||
@@ -21,6 +22,15 @@ inline int load_atomic(const QAtomicInt& value) {
|
||||
#endif
|
||||
}
|
||||
|
||||
+template <typename T>
|
||||
+inline T* load_atomic_pointer(const QAtomicPointer<T>& value) {
|
||||
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
+ return value;
|
||||
+#else
|
||||
+ return value.load();
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
inline QLocale inputLocale() {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
return QApplication::keyboardInputLocale();
|
||||
|
||||
From 62a034578ba5683562bcc77bf6909a64fcab3e2f Mon Sep 17 00:00:00 2001
|
||||
From: RJ Skerry-Ryan <rryan@mixxx.org>
|
||||
Date: Tue, 24 Apr 2018 08:45:45 -0700
|
||||
Subject: [PATCH 2/6] More qt5 compatibility fixes. How did these slip in?
|
||||
|
||||
---
|
||||
src/engine/sidechain/shoutconnection.cpp | 4 +--
|
||||
src/mixer/playermanager.cpp | 45 +++++++++++++++++---------------
|
||||
src/preferences/broadcastprofile.cpp | 5 ++--
|
||||
src/soundio/soundmanager.cpp | 9 ++++---
|
||||
4 files changed, 34 insertions(+), 29 deletions(-)
|
||||
|
||||
diff --git a/src/engine/sidechain/shoutconnection.cpp b/src/engine/sidechain/shoutconnection.cpp
|
||||
index 4b8c59ce73..b72b9dda6d 100644
|
||||
--- a/src/engine/sidechain/shoutconnection.cpp
|
||||
+++ b/src/engine/sidechain/shoutconnection.cpp
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "preferences/usersettings.h"
|
||||
#include "recording/defs_recording.h"
|
||||
#include "track/track.h"
|
||||
+#include "util/compatibility.h"
|
||||
#include "util/logger.h"
|
||||
|
||||
#include <engine/sidechain/shoutconnection.h>
|
||||
@@ -899,7 +900,7 @@ QSharedPointer<FIFO<CSAMPLE>> ShoutConnection::getOutputFifo() {
|
||||
}
|
||||
|
||||
bool ShoutConnection::threadWaiting() {
|
||||
- return m_threadWaiting;
|
||||
+ return load_atomic(m_threadWaiting);
|
||||
}
|
||||
|
||||
void ShoutConnection::run() {
|
||||
@@ -996,4 +997,3 @@ void ShoutConnection::ignoreSigpipe() {
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
-
|
||||
diff --git a/src/mixer/playermanager.cpp b/src/mixer/playermanager.cpp
|
||||
index e57a2a9136..b1fb18729e 100644
|
||||
--- a/src/mixer/playermanager.cpp
|
||||
+++ b/src/mixer/playermanager.cpp
|
||||
@@ -202,52 +202,55 @@ bool PlayerManager::isPreviewDeckGroup(const QString& group, int* number) {
|
||||
unsigned int PlayerManager::numDecks() {
|
||||
// We do this to cache the control once it is created so callers don't incur
|
||||
// a hashtable lookup every time they call this.
|
||||
- if (m_pCOPNumDecks == nullptr) {
|
||||
- ControlProxy* pNumCO = new ControlProxy(ConfigKey("[Master]", "num_decks"));
|
||||
- if (!pNumCO->valid()) {
|
||||
- delete pNumCO;
|
||||
- pNumCO = NULL;
|
||||
+ ControlProxy* pCOPNumDecks = m_pCOPNumDecks.loadAcquire();
|
||||
+ if (pCOPNumDecks == nullptr) {
|
||||
+ pCOPNumDecks = new ControlProxy(ConfigKey("[Master]", "num_decks"));
|
||||
+ if (!pCOPNumDecks->valid()) {
|
||||
+ delete pCOPNumDecks;
|
||||
+ pCOPNumDecks = nullptr;
|
||||
} else {
|
||||
- m_pCOPNumDecks = pNumCO;
|
||||
+ m_pCOPNumDecks = pCOPNumDecks;
|
||||
}
|
||||
}
|
||||
// m_pCOPNumDecks->get() fails on MacOs
|
||||
- return m_pCOPNumDecks ? (*m_pCOPNumDecks).get() : 0;
|
||||
+ return pCOPNumDecks ? pCOPNumDecks->get() : 0;
|
||||
}
|
||||
|
||||
// static
|
||||
unsigned int PlayerManager::numSamplers() {
|
||||
// We do this to cache the control once it is created so callers don't incur
|
||||
// a hashtable lookup every time they call this.
|
||||
- if (m_pCOPNumSamplers == nullptr) {
|
||||
- ControlProxy* pNumCO = new ControlProxy(ConfigKey("[Master]", "num_samplers"));
|
||||
- if (!pNumCO->valid()) {
|
||||
- delete pNumCO;
|
||||
- pNumCO = NULL;
|
||||
+ ControlProxy* pCOPNumSamplers = m_pCOPNumSamplers.loadAcquire();
|
||||
+ if (pCOPNumSamplers == nullptr) {
|
||||
+ pCOPNumSamplers = new ControlProxy(ConfigKey("[Master]", "num_samplers"));
|
||||
+ if (!pCOPNumSamplers->valid()) {
|
||||
+ delete pCOPNumSamplers;
|
||||
+ pCOPNumSamplers = nullptr;
|
||||
} else {
|
||||
- m_pCOPNumSamplers = pNumCO;
|
||||
+ m_pCOPNumSamplers = pCOPNumSamplers;
|
||||
}
|
||||
}
|
||||
// m_pCOPNumSamplers->get() fails on MacOs
|
||||
- return m_pCOPNumSamplers ? (*m_pCOPNumSamplers).get() : 0;
|
||||
+ return pCOPNumSamplers ? pCOPNumSamplers->get() : 0;
|
||||
}
|
||||
|
||||
// static
|
||||
unsigned int PlayerManager::numPreviewDecks() {
|
||||
// We do this to cache the control once it is created so callers don't incur
|
||||
// a hashtable lookup every time they call this.
|
||||
- if (m_pCOPNumPreviewDecks == NULL) {
|
||||
- ControlProxy* pNumCO = new ControlProxy(
|
||||
+ ControlProxy* pCOPNumPreviewDecks = m_pCOPNumPreviewDecks.loadAcquire();
|
||||
+ if (pCOPNumPreviewDecks == nullptr) {
|
||||
+ pCOPNumPreviewDecks = new ControlProxy(
|
||||
ConfigKey("[Master]", "num_preview_decks"));
|
||||
- if (!pNumCO->valid()) {
|
||||
- delete pNumCO;
|
||||
- pNumCO = NULL;
|
||||
+ if (!pCOPNumPreviewDecks->valid()) {
|
||||
+ delete pCOPNumPreviewDecks;
|
||||
+ pCOPNumPreviewDecks = nullptr;
|
||||
} else {
|
||||
- m_pCOPNumPreviewDecks = pNumCO;
|
||||
+ m_pCOPNumPreviewDecks = pCOPNumPreviewDecks;
|
||||
}
|
||||
}
|
||||
// m_pCOPNumPreviewDecks->get() fails on MacOs
|
||||
- return m_pCOPNumPreviewDecks ? (*m_pCOPNumPreviewDecks).get() : 0;
|
||||
+ return pCOPNumPreviewDecks ? pCOPNumPreviewDecks->get() : 0;
|
||||
}
|
||||
|
||||
void PlayerManager::slotNumDecksControlChanged(double v) {
|
||||
diff --git a/src/preferences/broadcastprofile.cpp b/src/preferences/broadcastprofile.cpp
|
||||
index 824d2e9364..0b8a1aa9c1 100644
|
||||
--- a/src/preferences/broadcastprofile.cpp
|
||||
+++ b/src/preferences/broadcastprofile.cpp
|
||||
@@ -16,6 +16,7 @@ using namespace QKeychain;
|
||||
|
||||
#include "broadcast/defs_broadcast.h"
|
||||
#include "defs_urls.h"
|
||||
+#include "util/compatibility.h"
|
||||
#include "util/xml.h"
|
||||
#include "util/memory.h"
|
||||
#include "util/logger.h"
|
||||
@@ -387,11 +388,11 @@ QString BroadcastProfile::getProfileName() const {
|
||||
|
||||
void BroadcastProfile::setConnectionStatus(int newState) {
|
||||
m_connectionStatus = newState;
|
||||
- emit connectionStatusChanged(m_connectionStatus);
|
||||
+ emit connectionStatusChanged(connectionStatus());
|
||||
}
|
||||
|
||||
int BroadcastProfile::connectionStatus() {
|
||||
- return m_connectionStatus;
|
||||
+ return load_atomic(m_connectionStatus);
|
||||
}
|
||||
|
||||
void BroadcastProfile::setSecureCredentialStorage(bool value) {
|
||||
diff --git a/src/soundio/soundmanager.cpp b/src/soundio/soundmanager.cpp
|
||||
index ce2cb5dd1f..bcd3b8752b 100644
|
||||
--- a/src/soundio/soundmanager.cpp
|
||||
+++ b/src/soundio/soundmanager.cpp
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "soundio/sounddevicenotfound.h"
|
||||
#include "soundio/sounddeviceportaudio.h"
|
||||
#include "soundio/soundmanagerutil.h"
|
||||
+#include "util/compatibility.h"
|
||||
#include "util/cmdlineargs.h"
|
||||
#include "util/defs.h"
|
||||
#include "util/sample.h"
|
||||
@@ -363,8 +364,8 @@ SoundDeviceError SoundManager::setupDevices() {
|
||||
|
||||
m_pMasterAudioLatencyOverloadCount->set(0);
|
||||
|
||||
- // load with all configured devices.
|
||||
- // all found devices are removed below
|
||||
+ // load with all configured devices.
|
||||
+ // all found devices are removed below
|
||||
QSet<QString> devicesNotFound = m_config.getDevices();
|
||||
|
||||
// pair is isInput, isOutput
|
||||
@@ -692,14 +693,14 @@ int SoundManager::getConfiguredDeckCount() const {
|
||||
|
||||
void SoundManager::processUnderflowHappened() {
|
||||
if (m_underflowUpdateCount == 0) {
|
||||
- if (m_underflowHappened) {
|
||||
+ if (load_atomic(m_underflowHappened)) {
|
||||
m_pMasterAudioLatencyOverload->set(1.0);
|
||||
m_pMasterAudioLatencyOverloadCount->set(
|
||||
m_pMasterAudioLatencyOverloadCount->get() + 1);
|
||||
m_underflowUpdateCount = CPU_OVERLOAD_DURATION * m_config.getSampleRate()
|
||||
/ m_config.getFramesPerBuffer() / 1000;
|
||||
|
||||
- m_underflowHappened = 0; // reseting her is not thread save,
|
||||
+ m_underflowHappened = 0; // resetting here is not thread safe,
|
||||
// but that is OK, because we count only
|
||||
// 1 underflow each 500 ms
|
||||
} else {
|
||||
|
||||
From 39ac01179aa5da33d6326983858d497701edfd27 Mon Sep 17 00:00:00 2001
|
||||
From: RJ Skerry-Ryan <rryan@mixxx.org>
|
||||
Date: Wed, 9 May 2018 03:37:51 -0700
|
||||
Subject: [PATCH 3/6] Alow Qt5 build on Windows.
|
||||
|
||||
---
|
||||
build/depends.py | 68 ++++++++++++++++++++++++++++++++++++++++++------
|
||||
build/qt5.py | 6 ++++-
|
||||
src/mixxxapplication.cpp | 17 ++++++++++++
|
||||
3 files changed, 82 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/build/depends.py b/build/depends.py
|
||||
index 25f1dd425a..5a8b5af564 100644
|
||||
--- a/build/depends.py
|
||||
+++ b/build/depends.py
|
||||
@@ -233,12 +233,32 @@ def find_framework_libdir(qtdir, qt5):
|
||||
def enabled_modules(build):
|
||||
qt5 = Qt.qt5_enabled(build)
|
||||
qt_modules = [
|
||||
- 'QtCore', 'QtGui', 'QtOpenGL', 'QtXml', 'QtSvg',
|
||||
- 'QtSql', 'QtScript', 'QtNetwork',
|
||||
- 'QtTest', 'QtScriptTools'
|
||||
+ # Keep alphabetized.
|
||||
+ 'QtCore',
|
||||
+ 'QtGui',
|
||||
+ 'QtNetwork',
|
||||
+ 'QtOpenGL',
|
||||
+ 'QtScript',
|
||||
+ 'QtScriptTools',
|
||||
+ 'QtSql',
|
||||
+ 'QtSvg',
|
||||
+ 'QtTest',
|
||||
+ 'QtXml',
|
||||
]
|
||||
if qt5:
|
||||
- qt_modules.extend(['QtWidgets', 'QtConcurrent'])
|
||||
+ qt_modules.extend([
|
||||
+ # Keep alphabetized.
|
||||
+ 'QtConcurrent',
|
||||
+ 'QtWidgets',
|
||||
+ ])
|
||||
+ if build.platform_is_windows:
|
||||
+ qt_modules.extend([
|
||||
+ # Keep alphabetized.
|
||||
+ 'QtAccessibilitySupport',
|
||||
+ 'QtEventDispatcherSupport',
|
||||
+ 'QtFontDatabaseSupport',
|
||||
+ 'QtThemeSupport',
|
||||
+ ])
|
||||
return qt_modules
|
||||
|
||||
@staticmethod
|
||||
@@ -391,6 +411,22 @@ def configure(self, build, conf):
|
||||
# QtNetwork openssl-linked
|
||||
build.env.Append(LIBS = 'crypt32')
|
||||
|
||||
+ # New libraries required by Qt5.
|
||||
+ if qt5:
|
||||
+ build.env.Append(LIBS = 'dwmapi') # qtwindows
|
||||
+ build.env.Append(LIBS = 'iphlpapi') # qt5network
|
||||
+ build.env.Append(LIBS = 'libEGL') # qt5opengl
|
||||
+ build.env.Append(LIBS = 'libGLESv2') # qt5opengl
|
||||
+ build.env.Append(LIBS = 'netapi32') # qt5core
|
||||
+ build.env.Append(LIBS = 'userenv') # qt5core
|
||||
+ build.env.Append(LIBS = 'uxtheme') # ?
|
||||
+ build.env.Append(LIBS = 'version') # ?
|
||||
+
|
||||
+ build.env.Append(LIBS = 'qtfreetype')
|
||||
+ build.env.Append(LIBS = 'qtharfbuzz')
|
||||
+ build.env.Append(LIBS = 'qtlibpng')
|
||||
+ build.env.Append(LIBS = 'qtpcre2')
|
||||
+
|
||||
# NOTE(rryan): If you are adding a plugin here, you must also
|
||||
# update src/mixxxapplication.cpp to define a Q_IMPORT_PLUGIN
|
||||
# for it. Not all imageformats plugins are built as .libs when
|
||||
@@ -409,11 +445,27 @@ def configure(self, build, conf):
|
||||
build.env.Append(LIBS = 'qico')
|
||||
build.env.Append(LIBS = 'qsvg')
|
||||
build.env.Append(LIBS = 'qtga')
|
||||
+ build.env.Append(LIBS = 'qgif')
|
||||
+ build.env.Append(LIBS = 'qjpeg')
|
||||
+
|
||||
+ # accessibility plugins (gone in Qt5)
|
||||
+ if not qt5:
|
||||
+ build.env.Append(LIBPATH=[
|
||||
+ os.path.join(build.env['QTDIR'],'plugins/accessible')])
|
||||
+ build.env.Append(LIBS = 'qtaccessiblewidgets')
|
||||
+
|
||||
+ # platform plugins (new in Qt5 for Windows)
|
||||
+ if qt5:
|
||||
+ build.env.Append(LIBPATH=[
|
||||
+ os.path.join(build.env['QTDIR'],'plugins/platforms')])
|
||||
+ build.env.Append(LIBS = 'qwindows')
|
||||
+
|
||||
+ # sqldrivers (new in Qt5? or did we just start enabling them)
|
||||
+ if qt5:
|
||||
+ build.env.Append(LIBPATH=[
|
||||
+ os.path.join(build.env['QTDIR'],'plugins/sqldrivers')])
|
||||
+ build.env.Append(LIBS = 'qsqlite')
|
||||
|
||||
- # accessibility plugins
|
||||
- build.env.Append(LIBPATH=[
|
||||
- os.path.join(build.env['QTDIR'],'plugins/accessible')])
|
||||
- build.env.Append(LIBS = 'qtaccessiblewidgets')
|
||||
|
||||
|
||||
# Set the rpath for linux/bsd/osx.
|
||||
diff --git a/build/qt5.py b/build/qt5.py
|
||||
index 674abef60a..c080e3243f 100644
|
||||
--- a/build/qt5.py
|
||||
+++ b/build/qt5.py
|
||||
@@ -881,14 +881,18 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, staticdeps=
|
||||
'QtWebKitWidgets',
|
||||
'QtWidgets',
|
||||
# Qt Add-Ons
|
||||
+ 'QtAccessibilitySupport',
|
||||
'QtConcurrent',
|
||||
'QtDBus',
|
||||
+ 'QtEventDispatcherSupport',
|
||||
+ 'QtFontDatabaseSupport',
|
||||
'QtOpenGL',
|
||||
'QtPrintSupport',
|
||||
'QtDeclarative',
|
||||
'QtScript',
|
||||
'QtScriptTools',
|
||||
'QtSvg',
|
||||
+ 'QtThemeSupport',
|
||||
'QtUiTools',
|
||||
'QtXml',
|
||||
'QtXmlPatterns',
|
||||
@@ -967,7 +971,7 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, staticdeps=
|
||||
modules.append("QtAssistantClient")
|
||||
self.AppendUnique(LIBS=['qtmain'+debugSuffix])
|
||||
self.AppendUnique(LIBS=[lib.replace("Qt","Qt5")+debugSuffix for lib in modules if lib not in staticModules])
|
||||
- self.PrependUnique(LIBS=[lib+debugSuffix for lib in modules if lib in staticModules])
|
||||
+ self.PrependUnique(LIBS=[lib.replace("Qt", "Qt5")+debugSuffix for lib in modules if lib in staticModules])
|
||||
if 'QtOpenGL' in modules:
|
||||
self.AppendUnique(LIBS=['opengl32'])
|
||||
self.AppendUnique(CPPPATH=[ '$QT5DIR/include/'])
|
||||
diff --git a/src/mixxxapplication.cpp b/src/mixxxapplication.cpp
|
||||
index f6a2281f3a..c2d1c83ffa 100644
|
||||
--- a/src/mixxxapplication.cpp
|
||||
+++ b/src/mixxxapplication.cpp
|
||||
@@ -11,6 +11,22 @@
|
||||
// plugins we link in build/depends.py.
|
||||
#ifdef QT_NODLL
|
||||
#include <QtPlugin>
|
||||
+#if QT_VERSION >= 0x050000
|
||||
+// sqldrivers plugins
|
||||
+Q_IMPORT_PLUGIN(QSQLiteDriverPlugin)
|
||||
+// platform plugins
|
||||
+Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
|
||||
+// imageformats plugins
|
||||
+Q_IMPORT_PLUGIN(QSvgPlugin)
|
||||
+Q_IMPORT_PLUGIN(QSvgIconPlugin)
|
||||
+Q_IMPORT_PLUGIN(QICOPlugin)
|
||||
+Q_IMPORT_PLUGIN(QTgaPlugin)
|
||||
+Q_IMPORT_PLUGIN(QJpegPlugin)
|
||||
+Q_IMPORT_PLUGIN(QGifPlugin)
|
||||
+// accessible plugins
|
||||
+// TODO(rryan): This is supposed to exist but does not in our builds.
|
||||
+//Q_IMPORT_PLUGIN(AccessibleFactory)
|
||||
+#else
|
||||
// iconengines plugins
|
||||
Q_IMPORT_PLUGIN(qsvgicon)
|
||||
// imageformats plugins
|
||||
@@ -20,6 +36,7 @@ Q_IMPORT_PLUGIN(qtga)
|
||||
// accessible plugins
|
||||
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
|
||||
MixxxApplication::MixxxApplication(int& argc, char** argv)
|
||||
|
||||
From 03ce46e29a2e83d38a82f6c4d55c540a9df792ce Mon Sep 17 00:00:00 2001
|
||||
From: RJ Skerry-Ryan <rryan@mixxx.org>
|
||||
Date: Mon, 14 May 2018 23:36:59 -0700
|
||||
Subject: [PATCH 4/6] One more missing library.
|
||||
|
||||
---
|
||||
build/depends.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/build/depends.py b/build/depends.py
|
||||
index 5a8b5af564..774c10cfd7 100644
|
||||
--- a/build/depends.py
|
||||
+++ b/build/depends.py
|
||||
@@ -417,6 +417,7 @@ def configure(self, build, conf):
|
||||
build.env.Append(LIBS = 'iphlpapi') # qt5network
|
||||
build.env.Append(LIBS = 'libEGL') # qt5opengl
|
||||
build.env.Append(LIBS = 'libGLESv2') # qt5opengl
|
||||
+ build.env.Append(LIBS = 'mpr') # qt5core
|
||||
build.env.Append(LIBS = 'netapi32') # qt5core
|
||||
build.env.Append(LIBS = 'userenv') # qt5core
|
||||
build.env.Append(LIBS = 'uxtheme') # ?
|
||||
|
||||
From 0c857e60511b65cebb08821ecebd636af10d7a56 Mon Sep 17 00:00:00 2001
|
||||
From: RJ Skerry-Ryan <rryan@mixxx.org>
|
||||
Date: Sat, 19 May 2018 20:54:17 -0700
|
||||
Subject: [PATCH 5/6] Add QWindowsVistaStyle support.
|
||||
|
||||
---
|
||||
build/depends.py | 6 ++++++
|
||||
src/mixxxapplication.cpp | 2 ++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/build/depends.py b/build/depends.py
|
||||
index 774c10cfd7..fec53d681a 100644
|
||||
--- a/build/depends.py
|
||||
+++ b/build/depends.py
|
||||
@@ -461,6 +461,12 @@ def configure(self, build, conf):
|
||||
os.path.join(build.env['QTDIR'],'plugins/platforms')])
|
||||
build.env.Append(LIBS = 'qwindows')
|
||||
|
||||
+ # styles (new in Qt5 for Windows)
|
||||
+ if qt5:
|
||||
+ build.env.Append(LIBPATH=[
|
||||
+ os.path.join(build.env['QTDIR'],'plugins/styles')])
|
||||
+ build.env.Append(LIBS = 'qwindowsvistastyle')
|
||||
+
|
||||
# sqldrivers (new in Qt5? or did we just start enabling them)
|
||||
if qt5:
|
||||
build.env.Append(LIBPATH=[
|
||||
diff --git a/src/mixxxapplication.cpp b/src/mixxxapplication.cpp
|
||||
index c2d1c83ffa..4b0ea8b353 100644
|
||||
--- a/src/mixxxapplication.cpp
|
||||
+++ b/src/mixxxapplication.cpp
|
||||
@@ -16,6 +16,8 @@
|
||||
Q_IMPORT_PLUGIN(QSQLiteDriverPlugin)
|
||||
// platform plugins
|
||||
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
|
||||
+// style plugins
|
||||
+Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin)
|
||||
// imageformats plugins
|
||||
Q_IMPORT_PLUGIN(QSvgPlugin)
|
||||
Q_IMPORT_PLUGIN(QSvgIconPlugin)
|
||||
|
||||
From ed8b240c683a2ada65b11c092909d22469bd0c18 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org>
|
||||
Date: Thu, 24 May 2018 00:28:21 +0200
|
||||
Subject: [PATCH 6/6] don't use loadAquire(), it is not available in Qt4
|
||||
|
||||
---
|
||||
src/mixer/playermanager.cpp | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/mixer/playermanager.cpp b/src/mixer/playermanager.cpp
|
||||
index b1fb18729e..5835c480f7 100644
|
||||
--- a/src/mixer/playermanager.cpp
|
||||
+++ b/src/mixer/playermanager.cpp
|
||||
@@ -202,7 +202,7 @@ bool PlayerManager::isPreviewDeckGroup(const QString& group, int* number) {
|
||||
unsigned int PlayerManager::numDecks() {
|
||||
// We do this to cache the control once it is created so callers don't incur
|
||||
// a hashtable lookup every time they call this.
|
||||
- ControlProxy* pCOPNumDecks = m_pCOPNumDecks.loadAcquire();
|
||||
+ ControlProxy* pCOPNumDecks = load_atomic_pointer(m_pCOPNumDecks);
|
||||
if (pCOPNumDecks == nullptr) {
|
||||
pCOPNumDecks = new ControlProxy(ConfigKey("[Master]", "num_decks"));
|
||||
if (!pCOPNumDecks->valid()) {
|
||||
@@ -220,7 +220,7 @@ unsigned int PlayerManager::numDecks() {
|
||||
unsigned int PlayerManager::numSamplers() {
|
||||
// We do this to cache the control once it is created so callers don't incur
|
||||
// a hashtable lookup every time they call this.
|
||||
- ControlProxy* pCOPNumSamplers = m_pCOPNumSamplers.loadAcquire();
|
||||
+ ControlProxy* pCOPNumSamplers = load_atomic_pointer(m_pCOPNumSamplers);
|
||||
if (pCOPNumSamplers == nullptr) {
|
||||
pCOPNumSamplers = new ControlProxy(ConfigKey("[Master]", "num_samplers"));
|
||||
if (!pCOPNumSamplers->valid()) {
|
||||
@@ -238,7 +238,7 @@ unsigned int PlayerManager::numSamplers() {
|
||||
unsigned int PlayerManager::numPreviewDecks() {
|
||||
// We do this to cache the control once it is created so callers don't incur
|
||||
// a hashtable lookup every time they call this.
|
||||
- ControlProxy* pCOPNumPreviewDecks = m_pCOPNumPreviewDecks.loadAcquire();
|
||||
+ ControlProxy* pCOPNumPreviewDecks = load_atomic_pointer(m_pCOPNumPreviewDecks);
|
||||
if (pCOPNumPreviewDecks == nullptr) {
|
||||
pCOPNumPreviewDecks = new ControlProxy(
|
||||
ConfigKey("[Master]", "num_preview_decks"));
|
||||
@@ -0,0 +1,648 @@
|
||||
From dd9af16a5e8c7e6f61951547d6f1260df8c1f6d4 Mon Sep 17 00:00:00 2001
|
||||
From: "Sean M. Pappalardo" <pegasus@renegadetech.com>
|
||||
Date: Fri, 20 Apr 2018 14:22:08 -0700
|
||||
Subject: [PATCH 1/6] AA VMS4: Fix touch strip needle drop scale
|
||||
|
||||
---
|
||||
res/controllers/American-Audio-VMS4-scripts.js | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
index a29e82c632..754348d33f 100644
|
||||
--- a/res/controllers/American-Audio-VMS4-scripts.js
|
||||
+++ b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
@@ -395,7 +395,7 @@ VMS4.jog_move_msb = function(channel, control, value, status, group) {
|
||||
VMS4.touch_strip = function(channel, control, value, status, group) {
|
||||
// Only modify the playposition if the deck is NOT playing!
|
||||
if (engine.getValue(group, "play") === 0) {
|
||||
- engine.setValue(group, "playposition", value);
|
||||
+ engine.setValue(group, "playposition", value/0x7F);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
From 2d912dc18558b73153c43bf365c8a85c4084f0a0 Mon Sep 17 00:00:00 2001
|
||||
From: "Sean M. Pappalardo" <pegasus@renegadetech.com>
|
||||
Date: Mon, 14 May 2018 12:48:57 -0700
|
||||
Subject: [PATCH 2/6] Update AA VMS4 preset - Update Mixxx version - Add
|
||||
cue_play on shifted CUE buttons (to match Traktor Edition label) - Add
|
||||
sync_master on shifted PLAY buttons (to match Traktor Edition label) - Update
|
||||
reloop buttons to use reloop_toggle - Make effect controls operate on
|
||||
Unit1_EffectM, correcting behavior
|
||||
|
||||
---
|
||||
res/controllers/American Audio VMS4.midi.xml | 50 +++++++++++++++++++-------
|
||||
res/controllers/American-Audio-VMS4-scripts.js | 6 ++--
|
||||
2 files changed, 40 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/res/controllers/American Audio VMS4.midi.xml b/res/controllers/American Audio VMS4.midi.xml
|
||||
index 564863598b..147d89d857 100644
|
||||
--- a/res/controllers/American Audio VMS4.midi.xml
|
||||
+++ b/res/controllers/American Audio VMS4.midi.xml
|
||||
@@ -4,7 +4,7 @@
|
||||
<name>American Audio VMS4/4.1</name>
|
||||
<author>Anders Gunnarsson & Sean M. Pappalardo</author>
|
||||
<wiki>http://mixxx.org/wiki/doku.php/american_audio_vms4</wiki>
|
||||
- <description>2-deck control/4-deck mixer preset for Mixxx 2.0. Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
+ <description>2-deck control/4-deck mixer preset for Mixxx 2.1. Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
</info>
|
||||
<controller id="American Audio VMS4">
|
||||
<scriptfiles>
|
||||
@@ -268,6 +268,18 @@
|
||||
<status>0x80</status>
|
||||
<midino>0x0C</midino>
|
||||
</control>
|
||||
+ <control><!-- on -->
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>cue_play</key>
|
||||
+ <status>0x91</status>
|
||||
+ <midino>0x0C</midino>
|
||||
+ </control>
|
||||
+ <control><!-- off -->
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>cue_play</key>
|
||||
+ <status>0x81</status>
|
||||
+ <midino>0x0C</midino>
|
||||
+ </control>
|
||||
<control><!-- on -->
|
||||
<group>[Channel1]</group>
|
||||
<key>play</key>
|
||||
@@ -275,20 +287,20 @@
|
||||
<midino>0x0D</midino>
|
||||
</control>
|
||||
<control><!-- off -->
|
||||
- <group>[Channel1]</group>
|
||||
- <key>play</key>
|
||||
- <status>0x80</status>
|
||||
- <midino>0x0D</midino>
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>play</key>
|
||||
+ <status>0x80</status>
|
||||
+ <midino>0x0D</midino>
|
||||
</control>
|
||||
<control><!-- Shifted Play -->
|
||||
<group>[Channel1]</group>
|
||||
- <key>start_play</key>
|
||||
+ <key>sync_master</key>
|
||||
<status>0x91</status>
|
||||
<midino>0x0D</midino>
|
||||
</control>
|
||||
<control><!-- Shifted Play -->
|
||||
<group>[Channel1]</group>
|
||||
- <key>start_play</key>
|
||||
+ <key>sync_master</key>
|
||||
<status>0x81</status>
|
||||
<midino>0x0D</midino>
|
||||
</control>
|
||||
@@ -487,7 +499,7 @@
|
||||
</control>
|
||||
<control><!-- on -->
|
||||
<group>[Channel1]</group>
|
||||
- <key>reloop_exit</key>
|
||||
+ <key>reloop_toggle</key>
|
||||
<status>0x90</status>
|
||||
<midino>0x21</midino>
|
||||
<options>
|
||||
@@ -496,7 +508,7 @@
|
||||
</control>
|
||||
<control><!-- off -->
|
||||
<group>[Channel1]</group>
|
||||
- <key>reloop_exit</key>
|
||||
+ <key>reloop_toggle</key>
|
||||
<status>0x80</status>
|
||||
<midino>0x21</midino>
|
||||
<options>
|
||||
@@ -922,6 +934,18 @@
|
||||
<status>0x80</status>
|
||||
<midino>0x2E</midino>
|
||||
</control>
|
||||
+ <control><!-- on -->
|
||||
+ <group>[Channel2]</group>
|
||||
+ <key>cue_play</key>
|
||||
+ <status>0x91</status>
|
||||
+ <midino>0x2E</midino>
|
||||
+ </control>
|
||||
+ <control><!-- off -->
|
||||
+ <group>[Channel2]</group>
|
||||
+ <key>cue_play</key>
|
||||
+ <status>0x81</status>
|
||||
+ <midino>0x2E</midino>
|
||||
+ </control>
|
||||
<control><!-- on -->
|
||||
<group>[Channel2]</group>
|
||||
<key>play</key>
|
||||
@@ -930,13 +954,13 @@
|
||||
</control>
|
||||
<control><!-- Shifted Play -->
|
||||
<group>[Channel2]</group>
|
||||
- <key>start_play</key>
|
||||
+ <key>sync_master</key>
|
||||
<status>0x91</status>
|
||||
<midino>0x2F</midino>
|
||||
</control>
|
||||
<control><!-- Shifted Play -->
|
||||
<group>[Channel2]</group>
|
||||
- <key>start_play</key>
|
||||
+ <key>sync_master</key>
|
||||
<status>0x81</status>
|
||||
<midino>0x2F</midino>
|
||||
</control>
|
||||
@@ -1136,7 +1160,7 @@
|
||||
</control>
|
||||
<control><!-- on -->
|
||||
<group>[Channel2]</group>
|
||||
- <key>reloop_exit</key>
|
||||
+ <key>reloop_toggle</key>
|
||||
<status>0x90</status>
|
||||
<midino>0x43</midino>
|
||||
<options>
|
||||
@@ -1145,7 +1169,7 @@
|
||||
</control>
|
||||
<control><!-- off -->
|
||||
<group>[Channel2]</group>
|
||||
- <key>reloop_exit</key>
|
||||
+ <key>reloop_toggle</key>
|
||||
<status>0x80</status>
|
||||
<midino>0x43</midino>
|
||||
<options>
|
||||
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
index 754348d33f..6f4d95a731 100644
|
||||
--- a/res/controllers/American-Audio-VMS4-scripts.js
|
||||
+++ b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
@@ -313,14 +313,14 @@ VMS4.effectSelect = function(channel, control, value, status, group) {
|
||||
|
||||
diff += wrapCount*128;
|
||||
|
||||
- engine.setValue("[EffectRack1_EffectUnit"+VMS4.GetDeckNum(group)+"]","chain_selector",diff);
|
||||
+ engine.setValue("[EffectRack1_EffectUnit"+VMS4.GetDeckNum(group)+"_Effect1]","effect_selector",diff);
|
||||
}
|
||||
|
||||
VMS4.effectSelectPress = function(channel, control, value, status, group) {
|
||||
var deckNum = VMS4.GetDeckNum(group);
|
||||
if (value > 0x40) {
|
||||
- engine.setValue("[EffectRack1_EffectUnit"+deckNum+"]","enabled",
|
||||
- !engine.getValue("[EffectRack1_EffectUnit"+deckNum+"]","enabled")
|
||||
+ engine.setValue("[EffectRack1_EffectUnit"+deckNum+"_Effect1]","enabled",
|
||||
+ !engine.getValue("[EffectRack1_EffectUnit"+deckNum+"_Effect1]","enabled")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
From a8269117932b078e93b8b0f65a4178994c23214f Mon Sep 17 00:00:00 2001
|
||||
From: "Sean M. Pappalardo" <pegasus@renegadetech.com>
|
||||
Date: Tue, 15 May 2018 15:52:32 -0700
|
||||
Subject: [PATCH 3/6] American Audio VMS4 updates: - Change CUP button to use
|
||||
cue_gotoandplay - Add strip scroll and touch functions that make the
|
||||
absolute-position touch scripts behave like relative-mode ones for scrolling
|
||||
through the library - Comment-out needle drop function in preparation for
|
||||
replacing it with effect dry/wet - Update script version and date
|
||||
|
||||
---
|
||||
res/controllers/American Audio VMS4.midi.xml | 91 +++++++++++++++++++++++---
|
||||
res/controllers/American-Audio-VMS4-scripts.js | 49 ++++++++++++--
|
||||
2 files changed, 124 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/res/controllers/American Audio VMS4.midi.xml b/res/controllers/American Audio VMS4.midi.xml
|
||||
index 147d89d857..3116252a7a 100644
|
||||
--- a/res/controllers/American Audio VMS4.midi.xml
|
||||
+++ b/res/controllers/American Audio VMS4.midi.xml
|
||||
@@ -4,7 +4,8 @@
|
||||
<name>American Audio VMS4/4.1</name>
|
||||
<author>Anders Gunnarsson & Sean M. Pappalardo</author>
|
||||
<wiki>http://mixxx.org/wiki/doku.php/american_audio_vms4</wiki>
|
||||
- <description>2-deck control/4-deck mixer preset for Mixxx 2.1. Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
+ <description>2-deck control/4-deck mixer preset for Mixxx 2.1.
|
||||
+Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
</info>
|
||||
<controller id="American Audio VMS4">
|
||||
<scriptfiles>
|
||||
@@ -270,13 +271,13 @@
|
||||
</control>
|
||||
<control><!-- on -->
|
||||
<group>[Channel1]</group>
|
||||
- <key>cue_play</key>
|
||||
+ <key>cue_gotoandplay</key>
|
||||
<status>0x91</status>
|
||||
<midino>0x0C</midino>
|
||||
</control>
|
||||
<control><!-- off -->
|
||||
<group>[Channel1]</group>
|
||||
- <key>cue_play</key>
|
||||
+ <key>cue_gotoandplay</key>
|
||||
<status>0x81</status>
|
||||
<midino>0x0C</midino>
|
||||
</control>
|
||||
@@ -705,14 +706,50 @@
|
||||
</options>
|
||||
</control>
|
||||
<control>
|
||||
- <group>[Channel1]</group>
|
||||
- <key>VMS4.touch_strip</key>
|
||||
+ <group>[Library]</group>
|
||||
+ <key>VMS4.strip_scroll</key>
|
||||
<status>0xB0</status>
|
||||
<midino>0x28</midino>
|
||||
<options>
|
||||
<Script-Binding/>
|
||||
</options>
|
||||
</control>
|
||||
+ <control>
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x90</status>
|
||||
+ <midino>0x57</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
+ <control>
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x80</status>
|
||||
+ <midino>0x57</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
+ <control> <!-- Shifted -->
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x91</status>
|
||||
+ <midino>0x57</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
+ <control>
|
||||
+ <group>[Channel1]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x81</status>
|
||||
+ <midino>0x57</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
|
||||
<!-- Deck B -->
|
||||
<control>
|
||||
@@ -936,13 +973,13 @@
|
||||
</control>
|
||||
<control><!-- on -->
|
||||
<group>[Channel2]</group>
|
||||
- <key>cue_play</key>
|
||||
+ <key>cue_gotoandplay</key>
|
||||
<status>0x91</status>
|
||||
<midino>0x2E</midino>
|
||||
</control>
|
||||
<control><!-- off -->
|
||||
<group>[Channel2]</group>
|
||||
- <key>cue_play</key>
|
||||
+ <key>cue_gotoandplay</key>
|
||||
<status>0x81</status>
|
||||
<midino>0x2E</midino>
|
||||
</control>
|
||||
@@ -1366,14 +1403,50 @@
|
||||
</options>
|
||||
</control>
|
||||
<control>
|
||||
- <group>[Channel2]</group>
|
||||
- <key>VMS4.touch_strip</key>
|
||||
+ <group>[Library]</group>
|
||||
+ <key>VMS4.strip_scroll</key>
|
||||
<status>0xB0</status>
|
||||
<midino>0x2D</midino>
|
||||
<options>
|
||||
<Script-Binding/>
|
||||
</options>
|
||||
</control>
|
||||
+ <control>
|
||||
+ <group>[Channel2]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x90</status>
|
||||
+ <midino>0x58</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
+ <control>
|
||||
+ <group>[Channel2]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x80</status>
|
||||
+ <midino>0x58</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
+ <control> <!-- Shifted -->
|
||||
+ <group>[Channel2]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x91</status>
|
||||
+ <midino>0x58</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
+ <control>
|
||||
+ <group>[Channel2]</group>
|
||||
+ <key>VMS4.strip_touch</key>
|
||||
+ <status>0x81</status>
|
||||
+ <midino>0x58</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
|
||||
<!-- Mixer main-->
|
||||
<control>
|
||||
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
index 6f4d95a731..8096205cee 100644
|
||||
--- a/res/controllers/American-Audio-VMS4-scripts.js
|
||||
+++ b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
- * American Audio VMS4 controller script v2.0 for Mixxx v2.0
|
||||
+ * American Audio VMS4 controller script v2.1 for Mixxx v2.1.x
|
||||
* Copyright (C) 2010 Anders Gunnarsson
|
||||
- * Copyright (C) 2011-2015 Sean M. Pappalardo
|
||||
+ * Copyright (C) 2011-2018 Sean M. Pappalardo
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@@ -228,6 +228,8 @@ VMS4.Deck.prototype.keyLockButtonHandler = function(value) {
|
||||
}
|
||||
|
||||
VMS4.Deck.prototype.effectParamButtonHandler = function(value) {
|
||||
+ // Couldn't get this to work. The buttons are mapped instead to VMS4.effectParameterButton
|
||||
+
|
||||
// if(value == ButtonState.pressed) {
|
||||
// this.controlEffectParameter=!this.controlEffectParameter;
|
||||
// if (this.controlEffectParameter) {
|
||||
@@ -244,6 +246,10 @@ VMS4.Deck.prototype.effectParamButtonHandler = function(value) {
|
||||
VMS4.Decks = {"Left":new VMS4.Deck(1,"[Channel1]"), "Right":new VMS4.Deck(2,"[Channel2]")};
|
||||
VMS4.GroupToDeck = {"[Channel1]":"Left", "[Channel2]":"Right"};
|
||||
VMS4.GroupToDeckNum = {"[Channel1]":1, "[Channel2]":2, "[Channel3]":3, "[Channel4]":4};
|
||||
+VMS4.StripToSide = {0x28:"Left", 0x2D:"Right"};
|
||||
+VMS4.touchStripPos = {"Left":null, "Right":null}; // Stores the position on touch
|
||||
+ // to convert the absolute sliders
|
||||
+ // to relative ones
|
||||
|
||||
VMS4.GetDeck = function(group) {
|
||||
try {
|
||||
@@ -392,11 +398,40 @@ VMS4.jog_move_msb = function(channel, control, value, status, group) {
|
||||
deck.jogMsb = value;
|
||||
}
|
||||
|
||||
-VMS4.touch_strip = function(channel, control, value, status, group) {
|
||||
- // Only modify the playposition if the deck is NOT playing!
|
||||
- if (engine.getValue(group, "play") === 0) {
|
||||
- engine.setValue(group, "playposition", value/0x7F);
|
||||
- }
|
||||
+// VMS4.touch_strip = function(channel, control, value, status, group) {
|
||||
+// // Only modify the playposition if the deck is NOT playing!
|
||||
+// if (engine.getValue(group, "play") === 0) {
|
||||
+// engine.setValue(group, "playposition", value/0x7F);
|
||||
+// }
|
||||
+// }
|
||||
+
|
||||
+VMS4.strip_touch = function(channel, control, value, status, group) {
|
||||
+ var deck = VMS4.GetDeckNum(group);
|
||||
+ if (deck === 1) { // Left side
|
||||
+ if ((status & 0xF0) === 0x90) { // If button down
|
||||
+ // TODO: Need a CO to focus explicitly on category selection pane
|
||||
+ // "[Library]","MoveFocus" just toggles and is frustrating
|
||||
+ } else { // Button up
|
||||
+ VMS4.touchStripPos["Left"] = null;
|
||||
+ }
|
||||
+ } else { // Right side
|
||||
+ if ((status & 0xF0) === 0x90) { // If button down
|
||||
+ // TODO: Need a CO to focus explicitly on track selection pane
|
||||
+ // "[Library]","MoveFocus" just toggles and is frustrating
|
||||
+ } else { // Button up
|
||||
+ VMS4.touchStripPos["Right"] = null;
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+VMS4.strip_scroll = function(channel, control, value, status, group) {
|
||||
+ var side = VMS4.StripToSide[control];
|
||||
+ if (VMS4.touchStripPos[side] != null) {
|
||||
+ // Higher on the strip gives a higher value, and up is negative on Library
|
||||
+ // scroll controls
|
||||
+ engine.setValue(group, "MoveVertical", VMS4.touchStripPos[side] - value);
|
||||
+ }
|
||||
+ VMS4.touchStripPos[side] = value;
|
||||
}
|
||||
|
||||
VMS4.vinyl = function(channel, control, value, status, group) {
|
||||
|
||||
From 00dc8100a40c5b1ab10ced81567003b31865befb Mon Sep 17 00:00:00 2001
|
||||
From: "Sean M. Pappalardo" <pegasus@renegadetech.com>
|
||||
Date: Wed, 16 May 2018 16:34:34 -0700
|
||||
Subject: [PATCH 4/6] AA VMS4 preset update - touch strip FX - Add effects
|
||||
dry/wet control to shifted touch strips - Replace setValue() with
|
||||
setParameter() - Delete now-unneeded strip touch button down if branch
|
||||
|
||||
---
|
||||
res/controllers/American Audio VMS4.midi.xml | 18 +++++++++++++
|
||||
res/controllers/American-Audio-VMS4-scripts.js | 36 ++++++++++++--------------
|
||||
2 files changed, 34 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/res/controllers/American Audio VMS4.midi.xml b/res/controllers/American Audio VMS4.midi.xml
|
||||
index 3116252a7a..7e4d0330c8 100644
|
||||
--- a/res/controllers/American Audio VMS4.midi.xml
|
||||
+++ b/res/controllers/American Audio VMS4.midi.xml
|
||||
@@ -714,6 +714,15 @@ Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
<Script-Binding/>
|
||||
</options>
|
||||
</control>
|
||||
+ <control> <!-- Shifted -->
|
||||
+ <group>[EffectRack1_EffectUnit1]</group>
|
||||
+ <key>VMS4.strip_fx_dw</key>
|
||||
+ <status>0xB1</status>
|
||||
+ <midino>0x28</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
<control>
|
||||
<group>[Channel1]</group>
|
||||
<key>VMS4.strip_touch</key>
|
||||
@@ -1411,6 +1420,15 @@ Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
<Script-Binding/>
|
||||
</options>
|
||||
</control>
|
||||
+ <control> <!-- Shifted -->
|
||||
+ <group>[EffectRack1_EffectUnit2]</group>
|
||||
+ <key>VMS4.strip_fx_dw</key>
|
||||
+ <status>0xB1</status>
|
||||
+ <midino>0x2D</midino>
|
||||
+ <options>
|
||||
+ <Script-Binding/>
|
||||
+ </options>
|
||||
+ </control>
|
||||
<control>
|
||||
<group>[Channel2]</group>
|
||||
<key>VMS4.strip_touch</key>
|
||||
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
index 8096205cee..0a001a77dc 100644
|
||||
--- a/res/controllers/American-Audio-VMS4-scripts.js
|
||||
+++ b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
@@ -319,7 +319,8 @@ VMS4.effectSelect = function(channel, control, value, status, group) {
|
||||
|
||||
diff += wrapCount*128;
|
||||
|
||||
- engine.setValue("[EffectRack1_EffectUnit"+VMS4.GetDeckNum(group)+"_Effect1]","effect_selector",diff);
|
||||
+ engine.setValue("[EffectRack1_EffectUnit"+VMS4.GetDeckNum(group)+"_Effect1]",
|
||||
+ "effect_selector",diff);
|
||||
}
|
||||
|
||||
VMS4.effectSelectPress = function(channel, control, value, status, group) {
|
||||
@@ -336,11 +337,9 @@ VMS4.effectControl = function(channel, control, value, status, group) {
|
||||
var deck = VMS4.GetDeck(group);
|
||||
var deckNum = VMS4.GetDeckNum(group);
|
||||
if (deck.controlEffectParameter) {
|
||||
- engine.setValue("[EffectRack1_EffectUnit"+deckNum+"]","super1",
|
||||
- script.absoluteLin(value,0,1));
|
||||
+ engine.setParameter("[EffectRack1_EffectUnit"+deckNum+"]","super1",value/0x7F);
|
||||
} else {
|
||||
- engine.setValue("[EffectRack1_EffectUnit"+deckNum+"]","mix",
|
||||
- script.absoluteLin(value,0,1));
|
||||
+ engine.setParameter("[EffectRack1_EffectUnit"+deckNum+"]","mix",value/0x7F);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,27 +397,18 @@ VMS4.jog_move_msb = function(channel, control, value, status, group) {
|
||||
deck.jogMsb = value;
|
||||
}
|
||||
|
||||
-// VMS4.touch_strip = function(channel, control, value, status, group) {
|
||||
-// // Only modify the playposition if the deck is NOT playing!
|
||||
-// if (engine.getValue(group, "play") === 0) {
|
||||
-// engine.setValue(group, "playposition", value/0x7F);
|
||||
-// }
|
||||
-// }
|
||||
+VMS4.strip_fx_dw = function(channel, control, value, status, group) {
|
||||
+ engine.setParameter(group,"mix",value/0x7F);
|
||||
+}
|
||||
|
||||
VMS4.strip_touch = function(channel, control, value, status, group) {
|
||||
var deck = VMS4.GetDeckNum(group);
|
||||
if (deck === 1) { // Left side
|
||||
- if ((status & 0xF0) === 0x90) { // If button down
|
||||
- // TODO: Need a CO to focus explicitly on category selection pane
|
||||
- // "[Library]","MoveFocus" just toggles and is frustrating
|
||||
- } else { // Button up
|
||||
+ if ((status & 0xF0) === 0x80) { // If button up
|
||||
VMS4.touchStripPos["Left"] = null;
|
||||
}
|
||||
} else { // Right side
|
||||
- if ((status & 0xF0) === 0x90) { // If button down
|
||||
- // TODO: Need a CO to focus explicitly on track selection pane
|
||||
- // "[Library]","MoveFocus" just toggles and is frustrating
|
||||
- } else { // Button up
|
||||
+ if ((status & 0xF0) === 0x80) { // If button up
|
||||
VMS4.touchStripPos["Right"] = null;
|
||||
}
|
||||
}
|
||||
@@ -429,7 +419,13 @@ VMS4.strip_scroll = function(channel, control, value, status, group) {
|
||||
if (VMS4.touchStripPos[side] != null) {
|
||||
// Higher on the strip gives a higher value, and up is negative on Library
|
||||
// scroll controls
|
||||
- engine.setValue(group, "MoveVertical", VMS4.touchStripPos[side] - value);
|
||||
+ if (side === "Left") {
|
||||
+ engine.setValue("[Playlist]", "SelectPlaylist",
|
||||
+ VMS4.touchStripPos[side] - value);
|
||||
+ } else {
|
||||
+ engine.setValue("[Playlist]", "SelectTrackKnob",
|
||||
+ VMS4.touchStripPos[side] - value);
|
||||
+ }
|
||||
}
|
||||
VMS4.touchStripPos[side] = value;
|
||||
}
|
||||
|
||||
From 89c951158c58296e21c8720ea336b8ea0523fd1a Mon Sep 17 00:00:00 2001
|
||||
From: "Sean M. Pappalardo" <pegasus@renegadetech.com>
|
||||
Date: Mon, 21 May 2018 08:28:22 -0700
|
||||
Subject: [PATCH 5/6] Address code review notes.
|
||||
|
||||
---
|
||||
res/controllers/American-Audio-VMS4-scripts.js | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
index 0a001a77dc..ab7cd72d0d 100644
|
||||
--- a/res/controllers/American-Audio-VMS4-scripts.js
|
||||
+++ b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
@@ -326,9 +326,7 @@ VMS4.effectSelect = function(channel, control, value, status, group) {
|
||||
VMS4.effectSelectPress = function(channel, control, value, status, group) {
|
||||
var deckNum = VMS4.GetDeckNum(group);
|
||||
if (value > 0x40) {
|
||||
- engine.setValue("[EffectRack1_EffectUnit"+deckNum+"_Effect1]","enabled",
|
||||
- !engine.getValue("[EffectRack1_EffectUnit"+deckNum+"_Effect1]","enabled")
|
||||
- );
|
||||
+ script.toggleControl("[EffectRack1_EffectUnit"+deckNum+"_Effect1]","enabled");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -416,7 +414,7 @@ VMS4.strip_touch = function(channel, control, value, status, group) {
|
||||
|
||||
VMS4.strip_scroll = function(channel, control, value, status, group) {
|
||||
var side = VMS4.StripToSide[control];
|
||||
- if (VMS4.touchStripPos[side] != null) {
|
||||
+ if (VMS4.touchStripPos[side] !== null) {
|
||||
// Higher on the strip gives a higher value, and up is negative on Library
|
||||
// scroll controls
|
||||
if (side === "Left") {
|
||||
|
||||
From 715548faf594a68c23ac8fccc32ce7d2108526bc Mon Sep 17 00:00:00 2001
|
||||
From: "Sean M. Pappalardo" <pegasus@renegadetech.com>
|
||||
Date: Mon, 21 May 2018 09:10:14 -0700
|
||||
Subject: [PATCH 6/6] Add needle drop when deck isn't playing, FX dry/wet when
|
||||
it is.
|
||||
|
||||
---
|
||||
res/controllers/American Audio VMS4.midi.xml | 4 ++--
|
||||
res/controllers/American-Audio-VMS4-scripts.js | 8 +++++++-
|
||||
2 files changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/res/controllers/American Audio VMS4.midi.xml b/res/controllers/American Audio VMS4.midi.xml
|
||||
index 7e4d0330c8..e1b83a2fc9 100644
|
||||
--- a/res/controllers/American Audio VMS4.midi.xml
|
||||
+++ b/res/controllers/American Audio VMS4.midi.xml
|
||||
@@ -715,7 +715,7 @@ Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
</options>
|
||||
</control>
|
||||
<control> <!-- Shifted -->
|
||||
- <group>[EffectRack1_EffectUnit1]</group>
|
||||
+ <group>[Channel1]</group>
|
||||
<key>VMS4.strip_fx_dw</key>
|
||||
<status>0xB1</status>
|
||||
<midino>0x28</midino>
|
||||
@@ -1421,7 +1421,7 @@ Assumes "Post EQ" mode. (See Wiki for full setup instructions.)</description>
|
||||
</options>
|
||||
</control>
|
||||
<control> <!-- Shifted -->
|
||||
- <group>[EffectRack1_EffectUnit2]</group>
|
||||
+ <group>[Channel2]</group>
|
||||
<key>VMS4.strip_fx_dw</key>
|
||||
<status>0xB1</status>
|
||||
<midino>0x2D</midino>
|
||||
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
index ab7cd72d0d..c312e0394a 100644
|
||||
--- a/res/controllers/American-Audio-VMS4-scripts.js
|
||||
+++ b/res/controllers/American-Audio-VMS4-scripts.js
|
||||
@@ -396,7 +396,13 @@ VMS4.jog_move_msb = function(channel, control, value, status, group) {
|
||||
}
|
||||
|
||||
VMS4.strip_fx_dw = function(channel, control, value, status, group) {
|
||||
- engine.setParameter(group,"mix",value/0x7F);
|
||||
+ var deck = VMS4.GetDeckNum(group);
|
||||
+ // When the deck is playing, adjust effect dry/wet. When it isn't, do needle drop.
|
||||
+ if (engine.getValue(group, "play") === 0) {
|
||||
+ engine.setValue(group, "playposition", value/0x7F);
|
||||
+ } else {
|
||||
+ engine.setParameter("[EffectRack1_EffectUnit"+deck+"]","mix",value/0x7F);
|
||||
+ }
|
||||
}
|
||||
|
||||
VMS4.strip_touch = function(channel, control, value, status, group) {
|
||||
Reference in New Issue
Block a user