NUX MG-30
v0.1.1Control a NUX MG-30 guitar processor over USB MIDI: amps, effects, knobs and presets.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_midi_ports
List MIDI output ports on this computer (to find the MG-30).
connect
Connect to the MG-30. port_hint: substring of the port name (empty = auto-detect).
| Parameter | Type | Description |
|---|---|---|
port_hint | string |
device_state
Current preset number plus models, on/off state and knob values of the edit buffer (read from the device, including unsaved edits).
set_model
Select a model in a block by name (e.g. amp "Vivo", efx "T Scream", ir "V412") or number. Blocks: wah, comp, efx, amp, eq, ng, mod, dly, rvb, ir, sendreturn. Selecting a model resets that block's knobs to the model defaults.
| Parameter | Type | Description |
|---|---|---|
block * | string | |
model * | ||
on | boolean |
set_block
Turn a block on or off, keeping its current model.
| Parameter | Type | Description |
|---|---|---|
block * | string | |
on * | boolean |
set_knob
Set a knob of a block. knob: label for the current model (e.g. "gain", "middle", "1.2k") or 1-based index in screen order. value: 0..100 (selectors such as SubD use small integers).
| Parameter | Type | Description |
|---|---|---|
block * | string | |
knob * | ||
value * | number |
apply_patch
Apply several settings at once. Format: {"blocks": {"amp": {"model": "Vivo", "on": true, "knobs": {"gain": 60, "middle": 65}}, "dly": {"on": false}}} Order per block: model, then on/off, then knobs. Blocks not listed are untouched.
| Parameter | Type | Description |
|---|---|---|
patch * | object |
select_preset
Switch preset, by device label ('07A', '12C') or Program Change number 0..127.
| Parameter | Type | Description |
|---|---|---|
preset * |
list_presets
List stored presets: slot, name and amp model.
| Parameter | Type | Description |
|---|---|---|
first | integer | |
last | integer |
preset_info
Decode a preset: name, signal chain, models, on/off and knob values. preset: 'current' (edit buffer incl. unsaved edits) or a slot ('07A' / 0..127).
| Parameter | Type | Description |
|---|---|---|
preset |
save_preset
Save the CURRENT edit buffer (with all unsaved edits) into a slot, optionally renaming it. OVERWRITES the target slot - confirm with the user before writing over an existing preset. Verified by reading the slot back.
| Parameter | Type | Description |
|---|---|---|
preset * | ||
name | string |
rename_preset
Rename a stored preset (1..16 ASCII characters) without changing anything else. Note: if it is the current preset, the edit buffer is reloaded and unsaved edits are lost.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
preset * |
backup_presets
Back up all 128 stored presets to a JSON file in the data directory.
| Parameter | Type | Description |
|---|---|---|
label | string |
list_backups
List backup files in the data directory.
restore_preset
Write one preset from a backup file back to the device. backup_file: file name from list_backups; source: slot in the backup ('07A'); target: slot to write to (default: same as source). OVERWRITES the target slot.
| Parameter | Type | Description |
|---|---|---|
backup_file * | string | |
source * | string | |
target | string |
save_patch_file
Store a patch (apply_patch format) as a JSON file in the data directory.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
patch * | object |
list_patch_files
List stored patch files.
load_patch_file
Load a patch (a name from list_patch_files or a path to a .json file) and, by default, apply it.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
apply | boolean |