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/07/08 09:20]
swiftb0y fixed slight formatting issues
midi_scripting [2019/11/24 08:58]
kobx formatting, remplaced --midiDebug with --controllerDebug
Line 74: Line 74:
 </​code>​ </​code>​
  
-The ID parameter of the init function is the ''​controller id''​ attribute from the XML file. This can be used to identify the particular controller instance in print statements. The ''​debugging''​ parameter is set to '​true'​ if the user specified the %%--mididebug%% parameter on the command line.+The ID parameter of the init function is the ''​controller id''​ attribute from the XML file. 
 +This can be used to identify the particular controller instance in print statements. 
 +The ''​debugging''​ parameter is set to '​true'​ if the user specified the ''​%%--controllerDebug%%'' ​parameter on the command line (''​%%--mididebug%%''​ until Mixxx 1.10).
  
 **Note**: Instead of using global variables, define properties of your controller object (''​MyController''​ in this example) to avoid name collisions with other scripts that may be loaded. **Note**: Instead of using global variables, define properties of your controller object (''​MyController''​ in this example) to avoid name collisions with other scripts that may be loaded.
Line 461: Line 463:
  
 Since these Methods might seem a bit confusing, we provide hotcuebutton class via [[components_js|Components JS]], which is able to take care of the color feature automatically (see [[components_js#​hotcuebutton|Components JS Hotcue]]). Since these Methods might seem a bit confusing, we provide hotcuebutton class via [[components_js|Components JS]], which is able to take care of the color feature automatically (see [[components_js#​hotcuebutton|Components JS Hotcue]]).
-===== Helper functions ===== 
  
-Here is a list of functions available to you from the always-loaded common-controller-scripts.js file:+===== Helper functions ===== 
 +Here is a list of functions available to you from the always-loaded ​''​common-controller-scripts.js'' ​file:
   * **nop**() - Does nothing (No OPeration.) Empty function you can use as a place-holder while developing to avoid errors.   * **nop**() - Does nothing (No OPeration.) Empty function you can use as a place-holder while developing to avoid errors.
   * **print**(//​string//​) - Prints the passed in string to the console.   * **print**(//​string//​) - Prints the passed in string to the console.
midi_scripting.txt · Last modified: 2020/02/04 22:49 by mevsme