You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
which make it much more pleasant to assemble group-and key-strings such as
[`EffectRack1_EffectUnitN_EffectM`](https://manual.mixxx.org/latest/chapters/appendix/mixxx_controls#the-effects-framework) and [`hotcue_X_activate`](https://manual.mixxx.org/latest/chapters/appendix/mixxx_controls#control-[ChannelN]-hotcue_X_activate)
### Connect output callback functions
Expand All
@@ -350,21 +359,21 @@ function, which takes 3 parameters:
`engine.makeConnection` returns an object that represents the callback
connection. This object should be stored in a script variable. To switch
the controller between different modes, such as controlling a different
deck:
- disconnect the old connection object by calling its ''disconnect'' method (with no arguments)
- register the new connection with ''engine.makeConnection''
- call the ''trigger'' method of the new connection object (with no arguments) to immediately execute the callback using the state of the new Mixxx Control.
- disconnect the old connection object by calling its `disconnect` method (with no arguments)
- register the new connection with `engine.makeConnection`
- call the `trigger` method of the new connection object (with no arguments) to immediately execute the callback using the state of the new Mixxx Control.
For example:
Expand All
@@ -380,20 +389,24 @@ checking `isConnected` or by comparing the return value of
`disconnect()`:
```javascript
var syncConnection =engine.makeConnection('[Channel1]', 'sync_enabled', function () {});
constsyncConnection=engine.makeConnection('[Channel1]', 'sync_enabled', function () {});
print(syncConnection.isConnected); // prints true
var successful_disconnect =syncConnection.disconnect();
console.log(syncConnection.isConnected); // prints true
There are no files selected for viewing