Creating Templates
If installed, create a .json file and place it in
C:\Users\{user}\AppData\Local\Pihitan\templates
If ran through jar, just place it in the same directory.
Template format
A template is a json file in the following format
{
"id": "Display Name",
"windowName": "Archetype Plini X",
"color": [ 0, 0.5, 0.7, 1],
"author": "pihitan",
...
"sections": [
{
"id": "pre-fx",
...
"items": [
{
"id": "compressor",
"type": "GEAR",
"pos": {
"x": 15,
"y": 70
},
...
]
}
]
}
Each number defined in the template is a % size of the actual window with the upper left corner as x = 0, y = 0. Here are some examples of points in the grid.
Define the position of prev / next preset button
{
"id": "program id",
...
"nextPreset": {
"x": 48,
"y": 15
},
"prevPreset": {
"x": 45,
"y": 15
},
...
}
Define sections. It is an array of objects. Each object has the following:
{
...
"id": "amp-clean",
"pos": {
"x": 39,
"y": 10
},
"preStep": {
"x": 45,
"y": 10
},
"items": [ ... ]
...
}
Define items.
{
"id": "gain",
"type": "GEAR",
"pos": {
"x": 25,
"y": 74
},
"items": [...]
},
- KNOB - Sending
press here will click the mouse on the containing item's pos
- TOGGLE - Sending
press here will click the mouse in place
- GEAR - This item will not be navigated. A GEAR type is expected to have items inside it. The position of this GEAR item will determine the
press position of the items inside it.
Here's an example of an item declaration for a drive/effects pedal.
{
"id": "drive",
"type": "GEAR",
"pos": {
"x": 62,
"y": 70
},
"items": [
{
"id": "drive",
"type": "KNOB",
"pos": {
"x": 55,
"y": 41
}
},
{
"id": "od/fuzz",
"type": "TOGGLE",
"pos": {
"x": 62,
"y": 41
}
},
{
"id": "tone",
"type": "KNOB",
"pos": {
"x": 62,
"y": 52
}
}
]
}
In this example, when you are currently in drive, pressing space will make the program click on the parent item pos x = 62, y = 70
If currently in od/fuzz, pressing space will press on x = 62, y = 41 instead.
Please use the plini-x.json template that is included in the installation as a template / guide. Please consider sharing your templates. Thanks!