Patchmark‹ All plug-ins
Manual contents
For version 0.9.7 · beta · Change

You're reading the manual for Patchmark 0.9.7. Go to this page for 0.9.9

Your device

Template files

Each custom template is a JSON file in the templates folder of the plugin's library folder (see Data storage; for the AU and the VST3 that is ~/Library/Patchmark/templates/). The editor writes these files for you; you can also copy them to another computer or write one by hand. A file with the ID of a factory template replaces that template.

{
  "deviceID": "roland_d50",
  "deviceName": "D-50",
  "manufacturer": "Roland",
  "firstPatch": 1,
  "lastPatch": 64,
  "bankSelect": "none",
  "defaultChannel": 1
}

A template for hardware with several banks lists them, with a bank select method to reach them:

{
  "deviceID": "roland_jv1080_custom",
  "deviceName": "JV-1080",
  "manufacturer": "Roland",
  "firstPatch": 1,
  "lastPatch": 128,
  "bankSelect": "msb+lsb",
  "banks": [
    { "name": "User", "kind": "user", "msb": 80, "lsb": 0 },
    { "name": "Preset A", "kind": "factory", "msb": 81, "lsb": 0 }
  ]
}
Key Required What it is
deviceID yes A short unique name: letters, digits, - and _. Projects remember the template by it
deviceName yes The hardware's name, as the header and the Template list show it
manufacturer no Shown before the name ("Eventide Eclipse")
firstPatch, lastPatch yes The patches the hardware has, numbered as in the patch list: 1–128. Patch 1 is Program Change 0
missingPatches no Patches between firstPatch and lastPatch the hardware doesn't have, each once: [70, 118, 119, 120]. The patch list leaves them out. The PCM70's preset rows end early, so its empty places are listed here. At least one patch must be left
bankSelect no "none" (the default), "msb", "lsb", "msb+lsb" or "nrpn"
nrpn with "nrpn" {"parameter": 8197}: the NRPN that selects the banks (0–16383); each bank then gives its nrpn value (0–16383)
defaultChannel no 1–16; 1 if left out
useBanks no true: a new Device on this template starts with Use banks on, one bank at a time, for hardware whose banks are no use in one long list (the PCM92). A Device whose Use banks you set keeps yours. Left out: off
banks no The hardware's banks, in order: each a name and the msb and lsb (0–127, 0 if left out) that select it. Every bank has the patches firstPatch–lastPatch. Left out: one bank. More than one bank needs a bankSelect other than "none", except with modes: then only banks in the same mode need one, and banks each in their own mode are told apart by the mode (the Korg M1's Program and Combination banks)
bankMap no For hardware that reads Bank Select one of two ways, set on the hardware itself (the TRITON's GLOBAL Bank Map): {"name": "GM(2)", "alternative": "KORG", "where": "GLOBAL mode: Bank Map", "msb": [[63, 0]]}. The banks' msb values are the first map's; under the alternative, each value msb lists becomes its pair's (63 goes out as 0) and the others stay. Device setup then shows Bank map, to say which one the hardware is set to; where is where to look on it. Needs a bankSelect that sends CC 0 ("msb" or "msb+lsb")
banks[].kind no "factory" for a bank of the hardware's own patches, "user" for one you store your own in. Only when every bank says, Show factory only can hide the user banks; left out, the switch is greyed out
banks[].slotKinds no Storage kind per MIDI program from 0: "factory", "user" or null for unknown; up to 128 entries. Overrides the whole-bank kind at those places, so a mixed RAM/ROM bank filters correctly without assuming a card is writable
banks[].names no The bank's factory names, one per patch from firstPatch, at most 128; "" for a patch without one
banks[].numbers no The number the hardware's own screen shows for each patch, one per patch from firstPatch as names, at most 8 characters; "" keeps the template's numbering for that patch. For hardware that numbers its presets other than by bank and program: the PCM92 numbers its factory presets within the front panel's categories, so Concert Hall shows 96
banks[].categories no The front-panel category each of those numbers counts within ("Halls Large"), as numbers; the patch list shows it after the name
banks[].machine no With configurations, on a bank a machine loads: "Mono" or "Stereo", the kind of machine that loads it. Once a System's configuration is known, each machine lists only the banks of its kind
banks[].missingPatches no As missingPatches, for this bank only: a factory bank that holds fewer patches than its user banks lists its empty places here, and the patch list leaves them out of that bank. Together with missingPatches they must leave the bank at least one patch
banks[].tags no The bank's factory tags, one list per patch from firstPatch, as names: ["Hall", "Vocal"], or [] for none. Factory templates use the shared list
banks[].mode with modes The name of the mode the bank is in, one of modes. Left out: the first mode
modes no For hardware where Bank Select and Program Change pick a program only within the current mode, and only a SysEx message changes the mode (a Yamaha Motif's Voice and Performance). 2–8 modes, each a name (at most 24 characters) and the message that puts the hardware in it: its bytes without F0 and F7, the maker's ID first, 2–64 bytes. One byte may be {"channel": 48}, which the Device's channel fills in (48 on channel 1, 49 on channel 2). A recall into a bank of another mode than the first sends that mode's message first; a recall into the first mode sends it only after the plugin sent another. Needs at least two banks, and no parts
modeStartsUnknown no With modes, true: the hardware's mode is unknown until the plugin sends one, so the first recall sends its mode, the first mode included (the Korg M1)
playModes no For hardware that plays in more than one way, chosen per Device in Device setup ▸ Plays in (the Roland JV-1080's Patch mode and Performance mode). 2–8, each a name and message as in modes, and its own parts: each a name, the banks group it loads, and either a channelOffset from the Device's channel or a channel of its own (1–16, which the Device can change). "wholeSetup": true marks the part that loads the whole hardware (a Performance): a recall into it sends its mode's message every time; any other recall sends it once, when the plugin last put the hardware in another mode. A part with a channel of its own may say how Device setup ▸ Read from unit asks the hardware for it, in readChannel: ask, the request's bytes after F0, the maker first, with at most one "checksum" (Roland's, over the bytes from checksumFrom, counted from F0); reply, [place, byte] pairs that mark the answer; valueAt, where the answer holds the channel (0–15 for channels 1–16); optionally switchAt, where it holds the part's receive switch (0 off, 1 on: a part switched off is set Off), off, the value the hardware gives for no channel, and replyMs (1000 by default). A mode may say what the hardware ignores in it (the JV-1080's GM mode): "takesSysEx": false refuses Read names, renames, backups and restores there, and Patchmark can't switch the hardware out of it (the musician does, on its panel); "takesBankSelect": false sends each recall's Program Change alone; "fixedChannels": true keeps each part on its channel, which the Device can't change. A bank a mode loads under another group lists it in alsoIn (["gm"]): the same bank, names and favourites. Not with modes, nor with parts at the top
numbering no How the hardware numbers its programs: "slots" (the default: 001–128), "hundreds" (bank 4, patch 52 is 451), "rowColumn" (ten to a row: 0.0, 0.1 … 4.9) or "letters" (sixteen to a letter: A01 … A16, B01 … H16, as a Yamaha Motif shows its voices)
numberStart no Only with "slots": 1 (the default, 001–128) or 0 (000–127)
numberRanges no With "rowColumn" or "slots", not "hundreds" or "letters": ranges of patches, each a first and last (1–128) and a prefix of up to 3 characters, numbered afresh in each range: from 0.0 with "rowColumn", from 1 with "slots", after the prefix and a space. The DX7 has INT for 1–32 and CRT for 33–64, so its list reads INT 1–INT 32, CRT 1–CRT 32, as its display does; searching 5 finds INT 5 and CRT 5, and crt5 only CRT 5. Each can also say its kind, "factory" or "user", as a bank does: when every range says, Show factory only hides the user ranges. The PCM70 has R for 1–50 ("user", its registers) and P for 51–120 ("factory", its presets)
sysex no How the hardware sends its memory as SysEx, from its manual, for SysEx backup. Left out: no backups. The editor shows it read-only, and Duplicate and Save keep it
sysex.manufacturer with sysex The maker's SysEx ID, the bytes after F0 that open every message of its dumps: one byte (Lexicon [6]), or three starting with 0 (Novation [0, 32, 41])
sysex.header no What every dump message starts with, the manufacturer first, where the manual gives it (Prophet-6 program dumps: [1, 45, 2])
sysex.messageLength no Each dump message's exact size in bytes, F0 and F7 included, where the manual gives it
sysex.pauseMs no The pause, in milliseconds (0–10000), the manual asks for between the dump messages the hardware receives. A restore waits at least this long after each message, never less than the cable needs
sysex.silenceSeconds no Extra idle wait in seconds (1–1800) between complete dump messages, for units that send several long messages
sysex.fixed no Product identifier bytes separated from the maker by a channel byte, as [position, value] pairs counted from F0
sysex.dumpRules no Integrity rules for documented dump types: fixed matching byte pairs, exact length, nibble dataStart, optional limits (position/maximum byte pairs), required companions (lists of fixed pairs). Data nibbles sum modulo 128 to the checksum before F7. captureCompanions additionally requires related messages during live capture; groupByte requires their same address byte. Use only with a verified specification
sysex.dumpSeconds no The longest, in seconds (1–1800), the hardware's dump takes to arrive whole. A dump sent as one long message shows only once all of it has arrived, so a backup waits this much longer for it before saying nothing arrived (Eventide Eclipse: 600)
sysex.frontPanel with sysex What to press on the hardware to send a dump, as the backup page shows it ("the front-panel 'Send Registers' function")
sysex.source no The manual and pages these come from
sysex.names no Where a dump keeps the patch names, for reading names from a backup. Only where the manual says so; left out: no Names…. Its keys are on that page, under Describing the names
display no showsNames: does its screen show names?
clock no sends: can the hardware send MIDI clock? Only then does the header show the CLOCK light. Left out: it can't. source: where the manual says so
panelLoad no asProgramChanges: true for hardware that announces a patch picked on its front panel with Program Changes only: Program Change 32 and the bank's number on the Device's channel, the patch on its part's channel, then one more Program Change there, which loads nothing (the Lexicon PCM92). Following the hardware reads them so. source: where that was seen

A file that is not valid JSON, or whose values are missing or out of range, is not offered. A warning banner names it and says what is wrong, for example 1 custom template couldn't be loaded: broken.json, last patch 200 is outside 1-128. Click Edit templates… on the banner and select the file to see why again, or delete it there. After fixing a file by hand, open the Template list or the editor and it is read again.


Device templates · User guide

Grouped SysEx banks and alternate dumps

sysex.names.bankSize and sysex.request.bankSize give the programs per internal SysEx bank when several consecutive internal banks share one MIDI bank. With 50, reading crosses to the next internal bank at program 50. sysex.names.onlyBank binds a dump without a bank address to one MIDI bank, counted from 0: the SR All Data message holds RAM1 and RAM2 in MIDI bank 0. sysex.names.alternatives lists up to eight other name layouts for different backup types, without nesting. Messages are read in order and later names take precedence.

This manual is for version 0.9.7.