-
Notifications
You must be signed in to change notification settings - Fork 4
/
template.xml.ejs
45 lines (43 loc) · 1.52 KB
/
template.xml.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version='1.0' encoding='utf-8'?>
<!--
<%= manufacturer %> <%= device %> MIDI mapping for Mixxx
This file is generated. Do not edit directly.
Instead, edit the source file and regenerate it.
See https://github.com/dszakallas/mixxx-launchpad#building-from-source.
Commit tag: <%= gitTag %>
Commit hash: <%= gitHash %>
-->
<MixxxControllerPreset mixxxVersion="1.11+" schemaVersion="1">
<info>
<name><%= manufacturer %> <%= device %></name>
<author><%= author %></author>
<description><%= description %></description>
<forums><%= homepage %></forums>
</info>
<controller id="<%= manufacturer %> <%= device %>">
<scriptfiles>
<file functionprefix="<%= global %>" filename="<%= manufacturer %>-<%= device %>-scripts.js"/>
</scriptfiles>
<controls>
<% if(sysex) { -%>
<control>
<status>0xf0</status>
<options>
<script-binding/>
</options>
</control>
<% } -%>
<% buttons.forEach(function (button) { -%>
<control>
<key><%= global %>.__m<%= hexFormat(button[0], 2) %><%= hexFormat(button[1], 2) %></key>
<status>0x<%= hexFormat(button[0], 2) %></status>
<midino>0x<%= hexFormat(button[1], 2) %></midino>
<options>
<script-binding/>
</options>
</control>
<% }) -%>
</controls>
<outputs/>
</controller>
</MixxxControllerPreset>