User Tools

Site Tools


midi_scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
midi_scripting [2019/11/24 12:10]
kobx Added references to script.deckFromGroup to scratch how to
midi_scripting [2020/02/04 22:49]
mevsme [Soft-takeover]
Line 276: Line 276:
 Note that this only works for controls manipulated through ''​engine.setValue()''​ or ''​engine.setParameter()''​ in a script. It does not work for controls mapped in an XML file. Note that this only works for controls manipulated through ''​engine.setValue()''​ or ''​engine.setParameter()''​ in a script. It does not work for controls mapped in an XML file.
  
-If you change the function ​of an absolute control (one that has hard stops at max and min positionsthat is controlling ​MixxxControls with soft-takeover enabled, you will need to tell Mixxx each time you change what the physical ​control is manipulating ​to avoid an abrupt jump when switching the physical control ​back. Do this with the following function, supplying the MixxxControl you're switching control //away// from:+If you change the functionality ​of an absolute control (one that has hard stopsmax and min position, not infinite encoderwhich is controlling ​[[mixxxcontrols]] and has soft-takeover enabled, you will need to tell Mixxx each time you change ​its functionality (e.g. press //shift// button) ​what physical ​rotary you are manipulating. This will prevent ​an abrupt jump to its current value from the old one, when switching the old functionality ​back (i.e. //​unshift//​). Do this with the following function, supplying the MixxxControl you're switching control //away// from:
 <code javascript>​ <code javascript>​
 engine.softTakeoverIgnoreNextValue("​[Channel1]",​ "​rate"​);​ engine.softTakeoverIgnoreNextValue("​[Channel1]",​ "​rate"​);​
midi_scripting.txt ยท Last modified: 2020/03/25 15:47 by be.ing