2022-03-12 21:44:58 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Cimdit Profile generator</title>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<style type="text/css">
|
|
|
|
<%= grunt.file.read('tmp/default.css') %>
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form><div>
|
|
|
|
<textarea id="jsoncounter" class="lineCounter" wrap="off" readonly>1</textarea>
|
|
|
|
<textarea id="json" class="codeEditor" wrap="off">
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "Joystick",
|
|
|
|
"customimage": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FFFFFFC000000000000000000000001FFFFFFFF800000000000000000000003FFFFFFFFC00000000000000000000007FFFFFFFFE0000000000000000000000FE0000007F0000000000000000000001F80000001F8000000000000000000001F1A000000F8000000000000000000003E1E00000E7C000000000000000000003E1E00001F7C000000000000000000003C5F80001F3C000000000000000000003CFFC0000E3C000000000000000000003CFFC000E03C000000000000000000003C7F0001E07C000000000000000000003E1E0000F07C000000000000000000003E1E1FF8E078000000000000000000001F143FFC00F8000000000000000000001F807FFE01F8000000000000000000000FD1FFFF87F00000000000000000000007FFF81FFFE00000000000000000000003FFF00FFFC00000000000000000000001FFE007FF8000000000000000000000007F8001FE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
|
|
"mappedbuttons": [
|
|
|
|
{
|
|
|
|
"source": 20,
|
|
|
|
"type": "JOYSTICK_BUTTON",
|
|
|
|
"target": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 62,
|
|
|
|
"type": "SWITCH_PROFILE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 61,
|
|
|
|
"type": "MACRO_PRESS",
|
|
|
|
"macro": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 60,
|
|
|
|
"type": "MACRO_PRESS",
|
|
|
|
"macro": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 59,
|
|
|
|
"type": "MACRO_PRESS",
|
|
|
|
"macro": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 59,
|
|
|
|
"type": "MACRO_RELEASE",
|
|
|
|
"macro": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 58,
|
|
|
|
"type": "MACRO_PRESS",
|
|
|
|
"macro": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 58,
|
|
|
|
"type": "MACRO_RELEASE",
|
|
|
|
"macro": 5
|
2022-03-20 20:58:15 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 50,
|
|
|
|
"type": "KEYBOARD_BUTTON",
|
|
|
|
"target": "KEY_0"
|
2022-03-12 21:44:58 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"mappedaxis": [
|
|
|
|
{
|
|
|
|
"source": 0,
|
|
|
|
"type": "JOYSTICK_AXIS",
|
|
|
|
"axis": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 1,
|
|
|
|
"type": "JOYSTICK_AXIS",
|
|
|
|
"axis": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 2,
|
|
|
|
"type": "JOYSTICK_AXIS",
|
|
|
|
"axis": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 3,
|
|
|
|
"type": "JOYSTICK_AXIS",
|
|
|
|
"axis": 4
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"mappedrotary": [
|
|
|
|
{
|
|
|
|
"source": 0,
|
|
|
|
"type": "PREV_PROFILE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 1,
|
|
|
|
"type": "NEXT_PROFILE"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"macros": [
|
|
|
|
[
|
|
|
|
"MACR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|
|
"source": 62,
|
|
|
|
"type": "SWITCH_PROFILE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 15,
|
|
|
|
"type": "MOUSE_REL_X_AXIS",
|
|
|
|
"value": 25
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 23,
|
|
|
|
"type": "MOUSE_REL_Y_AXIS",
|
|
|
|
"value": -25
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"mappedaxis": [
|
|
|
|
{
|
|
|
|
"source": 0,
|
|
|
|
"type": "MOUSE_REL_X_AXIS",
|
|
|
|
"value": 50
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 1,
|
|
|
|
"type": "MOUSE_REL_Y_AXIS",
|
|
|
|
"value": 50
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"mappedrotary": [
|
|
|
|
{
|
|
|
|
"source": 0,
|
|
|
|
"type": "PREV_PROFILE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 1,
|
|
|
|
"type": "NEXT_PROFILE"
|
|
|
|
}
|
2022-07-22 12:27:05 +02:00
|
|
|
],
|
|
|
|
"macros": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "MIDI",
|
|
|
|
"mappedbuttons": [
|
|
|
|
{
|
|
|
|
"source": 62,
|
|
|
|
"type": "SWITCH_PROFILE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 61,
|
|
|
|
"type": "MIDI_NOTE",
|
|
|
|
"channel": 0,
|
|
|
|
"note": 48,
|
|
|
|
"velocity": 64
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 53,
|
|
|
|
"type": "MIDI_NOTE",
|
|
|
|
"channel": 0,
|
|
|
|
"note": 49,
|
|
|
|
"velocity": 64
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 45,
|
|
|
|
"type": "MIDI_NOTE",
|
|
|
|
"channel": 0,
|
|
|
|
"note": 50,
|
|
|
|
"velocity": 64
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 37,
|
|
|
|
"type": "MIDI_NOTE",
|
|
|
|
"channel": 0,
|
|
|
|
"note": 51,
|
|
|
|
"velocity": 64
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 46,
|
|
|
|
"type": "MIDI_CTRL",
|
|
|
|
"channel": 0,
|
|
|
|
"control": 10,
|
|
|
|
"value": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 38,
|
|
|
|
"type": "MIDI_CTRL",
|
|
|
|
"channel": 0,
|
|
|
|
"control": 10,
|
|
|
|
"value": 64
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 49,
|
|
|
|
"type": "MIDI_PITCH",
|
|
|
|
"channel": 0,
|
|
|
|
"value": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 41,
|
|
|
|
"type": "MIDI_PITCH",
|
|
|
|
"channel": 0,
|
|
|
|
"value": 8192
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 33,
|
|
|
|
"type": "MACRO_PRESS",
|
|
|
|
"macro": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"mappedaxis": [
|
|
|
|
{
|
|
|
|
"source": 0,
|
|
|
|
"type": "MIDI_CTRL_AXIS",
|
|
|
|
"channel": 0,
|
|
|
|
"control": 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 1,
|
|
|
|
"type": "MIDI_PITCH_AXIS",
|
|
|
|
"channel": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 2,
|
|
|
|
"type": "MIDI_CTRL_AXIS",
|
|
|
|
"channel": 0,
|
|
|
|
"control": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"mappedrotary": [
|
|
|
|
{
|
|
|
|
"source": 0,
|
|
|
|
"type": "PREV_PROFILE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": 1,
|
|
|
|
"type": "NEXT_PROFILE"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"macros": [
|
|
|
|
[
|
|
|
|
"MACRO_MIDI_NOTEON",
|
|
|
|
0,
|
|
|
|
60,
|
|
|
|
64,
|
|
|
|
"MACRO_DELAY",
|
|
|
|
1000,
|
|
|
|
"MACRO_MIDI_CTRL",
|
|
|
|
0,
|
|
|
|
10,
|
|
|
|
0,
|
|
|
|
"MACRO_DELAY",
|
|
|
|
2000,
|
|
|
|
"MACRO_MIDI_CTRL",
|
|
|
|
0,
|
|
|
|
10,
|
|
|
|
64,
|
|
|
|
"MACRO_DELAY",
|
|
|
|
1000,
|
|
|
|
"MACRO_MIDI_PITCH",
|
|
|
|
0,
|
|
|
|
512,
|
|
|
|
"MACRO_DELAY",
|
|
|
|
1000,
|
|
|
|
"MACRO_MIDI_PITCH",
|
|
|
|
0,
|
|
|
|
8192,
|
|
|
|
"MACRO_DELAY",
|
|
|
|
1000,
|
|
|
|
"MACRO_MIDI_NOTEOFF",
|
|
|
|
0,
|
|
|
|
60,
|
|
|
|
64
|
|
|
|
]
|
2022-03-12 21:44:58 +01:00
|
|
|
]
|
|
|
|
}
|
2022-07-22 12:27:05 +02:00
|
|
|
]</textarea>
|
2022-03-12 21:44:58 +01:00
|
|
|
<p><button id="generatestring" class="button">Generate String</button></p>
|
|
|
|
<p id="error"></p>
|
|
|
|
<textarea id="string"></textarea>
|
|
|
|
<p><button id="generatejson" class="button">Generate Json</button></p>
|
|
|
|
</div></form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
<%= grunt.file.read('tmp/bootstrap.out') %>
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|